Upstart script file to run a NodeJS server as a system service
-
Edit thie file accordingly and copy this file to
/etc/init/<your-service-name>.conf
-
Reload system initctl configurations
sudo initctl reload-configuration
- Now your NodeJs server can be run as a system service.
=> To start: sudo <your-service-name> start
=> To stop: sudo <your-service-name> stop
=> To check status: sudo <your-service-name> status