Skip to content

Commit

Permalink
Merge pull request #5396 from TeamGuilded/restartonerror
Browse files Browse the repository at this point in the history
PM2 does not restart crashed processes
  • Loading branch information
Unitech committed Sep 8, 2022
2 parents 8ef8fd2 + d72e79b commit b3b2ca7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/God.js
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit b3b2ca7

Please sign in to comment.