diff --git a/lib/API/schema.json b/lib/API/schema.json index d650a73d7..6be87b721 100644 --- a/lib/API/schema.json +++ b/lib/API/schema.json @@ -217,5 +217,9 @@ "windowsHide": { "type": "boolean", "default" : true + }, + "kill_retry_time": { + "type": "number", + "default" : 100 } } diff --git a/lib/God/Methods.js b/lib/God/Methods.js index e7b8e9fa3..4904fbd39 100644 --- a/lib/God/Methods.js +++ b/lib/God/Methods.js @@ -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);