common location for systemd unit files on Centos
/usr/lib/systemd/system/
/lib/systemd/system/
/etc/systemd/system
Common commands
list all services
systemctl list-unit-files
Check auto restart status on system restart
systemctl is-enabled node-exporter.service
systemctl is-enabledfilebeat.service
use the enable command to ensure that the service starts whenever the system boots
systemctl enable myservice
check the status of the service
systemctl status myservice
service can be stopped or restarted using standard systemd commands
systemctl stop myservice
systemctl restart myservice