mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
Merge pull request #1071 from jorge-d/fix_stopped_process_probes
Reset probes object when process exits
This commit is contained in:
commit
487700f8e7
@ -285,7 +285,9 @@ God.handleExit = function handleExit(clu, exit_code) {
|
||||
|
||||
if (stopping) proc.process.pid = 0;
|
||||
|
||||
// Reset probes and actions
|
||||
if (proc.pm2_env.axm_actions) proc.pm2_env.axm_actions = [];
|
||||
if (proc.pm2_env.axm_monitor) proc.pm2_env.axm_monitor = {};
|
||||
|
||||
if (proc.pm2_env.status != cst.ERRORED_STATUS &&
|
||||
proc.pm2_env.status != cst.STOPPING_STATUS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user