mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Reinforced last commit purpose
This commit is contained in:
parent
d9fd10e3cb
commit
189dd45f72
@ -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() {
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user