Skip to content

Commit e442ea9

Browse files
committed
add no process error handling to cli.restartAll
1 parent 3b3d04b commit e442ea9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/forever/cli.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ app.cmd('stopall', cli.stopall = function () {
273273
});
274274

275275
//
276-
// ### function stopall ()
277-
// Stops all currently running forever processes.
276+
// ### function restartall ()
277+
// Restarts all currently running forever processes.
278278
//
279279
app.cmd('restartall', cli.restartAll = function () {
280280
var runner = forever.restartAll(true);
@@ -289,6 +289,10 @@ app.cmd('restartall', cli.restartAll = function () {
289289
forever.log.info('No forever processes running');
290290
}
291291
});
292+
293+
runner.on('error', function () {
294+
forever.log.info('No forever processes running');
295+
});
292296
});
293297

294298
//

0 commit comments

Comments
 (0)