#start a service
$systemctl start service.service
#stop a service
$systemctl stop service.service
#status of a service
$systemctl restart service.service
Create a file
$nano /etc/systemd/system/some_script.service
some_script.service
[Unit]
Wants=network-online.target
After=network.target network-online.target
[Service]
ExecStart=/root/script/some_script.sh
[Install]
WantedBy=default.target
#set the good permissions
$chmod 744 /root/script/some_script.sh
#reload the daemon
$systemctl daemon-reload
#enable the service at startup
$systemctl enable some_script.service
$systemctl start some_script.service
#debug for the service "SERVICENAME.service"
$journalctl -u SERVICENAME.service