node.jsserverrestartupstart

how to automatically restart a node server?


We are finishing development of a project, the client is already using it but occasionally some errors occur - crashing the server.

I know I could register a service as 'upstart' script on linux, in order to have my node service restart when it crashes.

But our server is running other stuff, so we can't restart it. Well, actually, while writing, I realize I have two questions then:


Solution

  • Yes, upstart will restart your process without a reboot.

    Also, you should look into forever.