Template files for Linux Systemd.
- Fill your template accordingly.
sudo cp your-service-file.service /lib/systemd/system
sudo systemctl daemon-reload
this should be run everytime.service
file is modifiedsudo systemctl enable your-service-file
sudo systemctl start your-service-file
systemctl status your-service-file
- From start:
journalctl -u your-service-file
- From end (reverse):
journalctl -u your-service-file -r
- Live feed:
journalctl -u your-service-file -f