Skip to content

Commit

Permalink
Merge pull request #4443 from zyf0330/master
Browse files Browse the repository at this point in the history
fix: pm2-runtime auto-exit check ignores module like logrotate
  • Loading branch information
Unitech authored Oct 11, 2019
2 parents e24fc12 + 38ea119 commit 7a6fe42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/binaries/Runtime4Docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ var Runtime = {
var appOnline = 0;

apps.forEach(function (app) {
if (app.pm2_env.status === cst.ONLINE_STATUS ||
app.pm2_env.status === cst.LAUNCHING_STATUS) {
if (!app.pm2_env.pmx_module &&
(app.pm2_env.status === cst.ONLINE_STATUS ||
app.pm2_env.status === cst.LAUNCHING_STATUS)) {
appOnline++;
}
});
Expand Down

0 comments on commit 7a6fe42

Please sign in to comment.