Navigation Menu

Skip to content

Commit

Permalink
Exit normally on SIGINT and SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 25, 2014
1 parent 97c867c commit 44cb2b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/droonga-http-server
Expand Up @@ -108,3 +108,11 @@ application.droonga({
});

server.listen(options.port);

process.on('SIGINT', function() {
server.close();
});

process.on('SIGTERM', function() {
server.close();
});

0 comments on commit 44cb2b5

Please sign in to comment.