-List all the current loaded targets as command below:
$ sudo systemctl list-units -t targetEach services has 3 states; enabled, disabled and static.
- To list enabled services as command below:
$ sudo systemctl list-unit-files --type=service | grep enabled- To start/stop/restart services as command below:
# systemctl status <servicename>- To check running ntp services as comman below:
# systemctl stop <servicename>
# systemctl start <servicename>
# systemctl restart <servicename>
$ sudo systemctl list-units --type service --all | grep ntp- Set the service to start a boot:
# systemctl enable <servicename>- Disable service start-up boot
# systemctl disable serviceThe update later related command line "Centos 7 managing services with Systemd" in this article.