diff --git a/lib/API/schema.json b/lib/API/schema.json index 7bafbea8a..ce823c2b3 100644 --- a/lib/API/schema.json +++ b/lib/API/schema.json @@ -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" } diff --git a/lib/God/Methods.js b/lib/God/Methods.js index ea6753a2c..60fc31be3 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);