Skip to content

Commit

Permalink
add no process error handling to cli.restartAll
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 17, 2013
1 parent 3b3d04b commit e442ea9
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 @@ -273,8 +273,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 @@ -289,6 +289,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 e442ea9

Please sign in to comment.