forever
CLI tool for ensuring that a given script runs continuously
...-monitor. You can use forever to run scripts continuously (whether it is written in node.js or not). In addition to passing forever the path to a script (along with accompanying options, described above), you may also pass forever the path to a JSON file containing these options. The forever module exposes some useful methods to use in your code. Each method returns an instance of an EventEmitter which emits when complete.