app.js comment

This commit is contained in:
cubedro 2015-02-27 01:24:43 +02:00
parent 045d8cceb2
commit 5b6ede24f9

1
app.js
View File

@ -20,6 +20,7 @@ process.on('SIGTERM', gracefulShutdown);
// listen for INT signal e.g. Ctrl-C // listen for INT signal e.g. Ctrl-C
process.on('SIGINT', gracefulShutdown); process.on('SIGINT', gracefulShutdown);
// listen for shutdown signal from pm2
process.on('message', function(msg) { process.on('message', function(msg) {
if (msg == 'shutdown') if (msg == 'shutdown')
gracefulShutdown(); gracefulShutdown();