Navigation Menu

Skip to content

Commit

Permalink
Output info log with signal names
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 9, 2015
1 parent a5288d4 commit eb64d5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/droonga-http-server
Expand Up @@ -171,9 +171,11 @@ function shutdown(error) {
}

process.on('SIGINT', function() {
logger.info('Received a SIGINT signal. Shutting down the server...');
shutdown();
});

process.on('SIGTERM', function() {
logger.info('Received a SIGTERM signal. Shutting down the server...');
shutdown();
});

0 comments on commit eb64d5b

Please sign in to comment.