Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement