app.js comment
This commit is contained in:
parent
045d8cceb2
commit
5b6ede24f9
1
app.js
1
app.js
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user