Created
September 9, 2019 05:40
-
-
Save perbu/a8484056541f40270ffbab4a27c67d41 to your computer and use it in GitHub Desktop.
Revisions
-
perbu created this gist
Sep 9, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ function signalHandle(signal) { console.log('Received signal ', signal); server.em.emit("serverShutdown", "Shutdown initiated by signal "+signal); } process.on('SIGINT', signalHandle); process.on('SIGTERM', signalHandle);