app.js comment

This commit is contained in:
cubedro 2015-02-27 01:24:43 +02:00
parent 045d8cceb2
commit 5b6ede24f9
1 changed files with 1 additions and 0 deletions

1
app.js
View File

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