How to use Service (Systemd, Daemons)
Use if new service file were added or updated
bash
sudo systemctl daemon-reload- Start your servicebash
sudo systemctl start your-service-name.service - Enable autostart on rebootbash
sudo systemctl enable your-service-name.service - Stop your service:bash
sudo systemctl stop your-service-name.service - Disable autostart on rebootbash
sudo systemctl disable your-service-name.service - Restart service - use after bot updatebash
sudo systemctl restart your-service-name.service - Get service statusbash
sudo systemctl status your-service-name.service - If service status is not OK (see log info):bash
sudo journalctl -u your-service-name.service -b