I am developing a Nodejs application that the user interacts with via HTTP on localhost. There are practically no parameters and the daemon has virtually no dependencies and it just needs to be up by log-in time.
I would like to follow the idioms on each platform for start-up scripts, and that means Upstart on Ubuntu and systemd on Fedora.
- Are there any good tutorials for writing systemd system files?
- Are there any 'best practices' to be aware of?
I have found these resources:
I am mostly looking for an API of sorts as a reference, as well as a basic format to follow.