A simple CLI tool for ensuring that a given script runs continuously (i.e. forever)
A simple CLI tool for ensuring that a given script runs continuously (i.e. forever). Note that this project currently fully depends on the community for implementing fixes and new features. For new installations we encourage you to use pm2 or nodemon
$ [sudo] npm install forever -g
Note: If you are using forever programmatically you should install forever-monitor.
$ cd /path/to/your/project $ [sudo] npm install forever-monitor
There are two ways to use forever: through the command line or by using forever in your code. Note: If you are using forever programatically you should install forever-monitor.
You can use forever to run scripts continuously (whether it is written in node.js or not).
forever start app.js
Options ``` $ forever --help usage: forever [action] [options] SCRIPT [script-options]
Monitors the script specified in the current process or as a daemon
actions: start Start SCRIPT as a daemon stop Stop the daemon SCRIPT by Id|Uid|Pid|Index|Script stopall Stop all running forever scripts restart Restart the daemon SCRIPT restartall Restart all running forever scripts list List all running forever scripts config Lists all forever user configuration set Sets the specified forever config clear Clears the specified forever config logs Lists log files for all forever processes logs