Reinforced last commit purpose

This commit is contained in:
jshkurti 2015-03-12 17:57:49 +01:00
parent d9fd10e3cb
commit 189dd45f72
2 changed files with 6 additions and 0 deletions

View File

@ -576,6 +576,7 @@ CLI.updatePM2 = function(cb) {
printOut('Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.');
// Dump PM2 processes
Satan.executeRemote('notifyKillPM2', {}, function() {});
CLI.dump(function(err) {
debug('Dumping successfull', err);
CLI.killDaemon(function() {

View File

@ -344,6 +344,11 @@ God.handleExit = function handleExit(clu, exit_code) {
God.notify('exit', proc);
if (God.pm2_being_killed) {
console.log('PM2 is being killed, stopping restart procedure...');
return false;
}
if (!stopping)
proc.pm2_env.restart_time += 1;