A tool for allowing a process to automatically foreverizing itself
Foreverize is a handy tool that makes it really easy to your server code to incorporate forever-monitor automatically.
This version is going up on github/npm by popular demand, but is in no way ready for the general public yet...
config/forever.jsondependency (possibly put config into package.json)
$ npm install foreverize
Install required dependencies (or through package.json)
$ npm install forever$ npm install foreverize
varrequire"http"createServerlisten1337;var foreverize = require"foreverize";foreverize;if!foreverizeisMasterstart_server;
Now if your HTTP server crashes, it'll respawn itself. You can also use the normal forever commands to manage the process.
$ node_modules/.bin/forever listinfo: Forever processes runningdata: uid command script forever pid logfile uptimedata:  foreverize_example /usr/local/nvm/v0.8.8/bin/node /home/ilya/work/cm/foreverize_example/server.js 26326 26329 /home/ilya/work/cm/foreverize_example/log/forever.log 0:0:0:5.61
I welcome pull requests!
This software is distributed under the MIT License.