I was wondering how to correctly run a NodeJS process as system service. I have found this startup script online and forked the gist because there were several problems with the original script.

So just in case you need a cool and clean way to startup NodeJS Processes, feel free to use this or fork it too and improve it!