Running a NodeJS App as a Linux Service

#1

Something I often find myself doing is trying to make a nodejs app I’ve built stay up and running even after server reboots. I’ve been using a nice NPM package called Forever for a while now, and it works fine really. It monitors the app, and if it crashes restarts it for me, but I’ve noticed it doesn’t restart after the server is rebooted.

I was looking into it and found a cool option to use SystemD for this purpose. Check out this article.

http://tibbo.com/linux/nodejs/service-file.html