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. If you are using forever programmatically you should 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). 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.

Features

  • There are several examples designed to test the fault tolerance of forever
  • Forever parses JSON configuration files using shush, allowing the use of in-line comments within such files
  • JSON configuration files can also be used to define the startup options for multiple applications
  • You can create a list of metadata objects about each process that is being run using forever
  • Cleans up any extraneous forever *.pid files that are on the target system
  • Removes all log files from the root forever directory that do not belong to current running forever processes

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow forever

forever Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of forever!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Performance Testing Software, JavaScript PostScript Software

Registered

2021-04-26