mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Merge pull request #3539 from KimSeongIl/master
feat: add kill_retry_time argument
This commit is contained in:
commit
1325704d95
@ -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"
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user