HostOnNet Blog


Looking for Linux Server Admin or WordPress Expert? We can help.

systemctl command is will replace service command (SysV) used in older versions of CentOS/Ubuntu.

To see list of all services, run


To view cgroups tree, run


To see status of a service

systemctl status SERVICE-NAME


To start/stop/restart a service

To start

systemctl start SERVICE-NAME

To stop

systemctl stop SERVICE-NAME

To restart

systemctl restart SERVICE-NAME

Enable a service to start on boot

systemctl enable SERVICE-NAME

Service File Location

systemctl service files are located in folder


For example mariadb.service file located in folder


Show all services that start on boot

To see all services that are enabled (start on system boot).

systemctl list-unit-files | grep enabled

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.