Skip to content

Instantly share code, notes, and snippets.

@Unitecho
Last active December 17, 2015 02:49
Show Gist options
  • Save Unitecho/5538511 to your computer and use it in GitHub Desktop.
Save Unitecho/5538511 to your computer and use it in GitHub Desktop.
Combining forever and forever-monit
var foreverMonit = require('forever-monitor');
var forever = require('forever');
var child = new (foreverMonit.Monitor)('./toto.js', {
max: 3,
silent: false,
options: [],
sourceDir : '.',
pidFile : 'pid/app.pid'
});
child.start();
forever.startServer(child);
forever.cli.list();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment