Skip to content

Commit

Permalink
Merge pull request #3539 from KimSeongIl/master
Browse files Browse the repository at this point in the history
feat: add kill_retry_time argument
  • Loading branch information
wallet77 committed Mar 23, 2018
2 parents bfddf4f + f566833 commit 1325704
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/API/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@
"docDescription": "Enable or disable the Windows popup when starting an app",
"default": true
},
"kill_retry_time": {
"type": "number",
"default" : 100
},
"write": {
"type": "boolean"
}
Expand Down
4 changes: 2 additions & 2 deletions lib/God/Methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ module.exports = function(God) {
clearInterval(timer);
return cb(null, true);
}
console.log('pid=%d msg=failed to kill - retrying in 100ms', pid);
console.log('pid=%d msg=failed to kill - retrying in %dms', pid, pm2_env.kill_retry_time);
return false;
}, 100);
}, pm2_env.kill_retry_time);

timeout = setTimeout(function() {
clearInterval(timer);
Expand Down

0 comments on commit 1325704

Please sign in to comment.