I created a node.js application. It is a web server with the Express framework. I can start it with the command node server.js
. This application is deployed on a Red Hat Enterprise server.
I want this applicaion can:
- Start automatically when the OS is started.
- Restart automatically when it crashes.
I think OS service can meet my requirements, right? Is there any clue how to setup the Node.js application as service on Red Hat?