Navigation Menu

Skip to content

Commit

Permalink
Do shutdown process for SIGHUP also
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 9, 2015
1 parent eb64d5b commit 9919dac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/droonga-http-server
Expand Up @@ -170,6 +170,11 @@ function shutdown(error) {
fs.unlinkSync(options.pidFile);
}

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

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

0 comments on commit 9919dac

Please sign in to comment.