Last active
December 17, 2015 02:49
-
-
Save Unitecho/5538511 to your computer and use it in GitHub Desktop.
Combining forever and forever-monit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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