diff --git a/CHANGELOG.md b/CHANGELOG.md index 86ad0e9b..f503d727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Helper shown when -h - Linter errors - Systemd support for Fedora / ArchLinux +- #381 Add support for Amazon Linux startup script - Fixed rendering - Interaction possible with VitalSigns.io - Avoid exception when dump file is not present diff --git a/lib/God/Reload.js b/lib/God/Reload.js index f114eb53..6aa5b34e 100644 --- a/lib/God/Reload.js +++ b/lib/God/Reload.js @@ -63,6 +63,10 @@ function softReload(God, id, cb) { timeout_2 = setTimeout(function() { old_worker.disconnect(); }, cst.GRACEFUL_TIMEOUT); + /** + * Message sent to the process to alert to shutdown + * Then after cst.GRACEFUL_TIMEOUT ms it disconnect the process + */ old_worker.send('shutdown'); }); return false;