Created
September 9, 2019 05:40
-
-
Save perbu/a8484056541f40270ffbab4a27c67d41 to your computer and use it in GitHub Desktop.
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 characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment