System V with forever for your node.js application
The alternative to its Upstart brother on a Debian system with the same use case.
Here it is:
https://gist.github.com/3834896 To enable your boot script:
- Remove the
.sh
extension from the gist. - Move it into the
/etc/init.d
directory. - Make it executable by running
sudo chmod 755 /etc/init.d/service
. - Register the script for (re)boot by running
update-rc.d service defaults
.