Skip to content

Commit

Permalink
Merge pull request foreversd#390 from yyx990803/cli-restartall-fix
Browse files Browse the repository at this point in the history
add no process error handling to cli.restartAll()
  • Loading branch information
indexzero committed Apr 21, 2013
2 parents 1a1ba32 + e442ea9 commit 02b44b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ app.cmd('stopall', cli.stopall = function () {
});

//
// ### function stopall ()
// Stops all currently running forever processes.
// ### function restartall ()
// Restarts all currently running forever processes.
//
app.cmd('restartall', cli.restartAll = function () {
var runner = forever.restartAll(true);
Expand All @@ -317,6 +317,10 @@ app.cmd('restartall', cli.restartAll = function () {
forever.log.info('No forever processes running');
}
});

runner.on('error', function () {
forever.log.info('No forever processes running');
});
});

//
Expand Down

0 comments on commit 02b44b1

Please sign in to comment.