From d72e79b80ddfa6b7e177f0b6bf8bf70a439c5144 Mon Sep 17 00:00:00 2001 From: Neil Gupta Date: Wed, 29 Jun 2022 19:47:18 -0500 Subject: [PATCH] Fix pm2 not restarting crashed processes --- lib/God.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/God.js b/lib/God.js index 0377e4ac1..af57ad4bb 100644 --- a/lib/God.js +++ b/lib/God.js @@ -244,7 +244,6 @@ God.executeApp = function executeApp(env, cb) { clu.once('error', function(err) { console.error(err.stack || err); - clu.pm2_env.status = cst.ERRORED_STATUS; try { clu.destroy && clu.destroy(); } @@ -302,7 +301,6 @@ God.executeApp = function executeApp(env, cb) { clu.once('error', function cluError(err) { console.error(err.stack || err); - clu.pm2_env.status = cst.ERRORED_STATUS; try { clu.kill && clu.kill(); }