systemd
Enabling a service
# systemctl enable ntpd.service
Disabling a service
# systemctl disable ntpd.service
Starting a service
# systemctl start nptd.service
Stopping a service
# systemctl stop nptd.service
Reloading a service after modifying systemd configuration
# systemctl daemon-reload
# systemctl restart nptd.service
journalctl
$ sudo journalctl --follow _SYSTEMD_UNIT=avahi-daemon.service
$ sudo journalctl --follow --lines=10 --unit=avahi-daemon
$ sudo journalctl -f -n 10 -u avahi-daemon
References
- https://www.freedesktop.org/software/systemd/man/systemd.exec.html
- https://rocketeer.be/articles/deploying-node-js-with-systemd/
- http://www.axllent.org/docs/view/nodejs-service-with-systemd/
-- Frank Dean - 26 Feb 2016