[Groonga-commit] droonga/droonga-http-server at 44cb2b5 [master] Exit normally on SIGINT and SIGTERM

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 25 15:34:55 JST 2014


Kouhei Sutou	2014-04-25 15:34:55 +0900 (Fri, 25 Apr 2014)

  New Revision: 44cb2b5e58c93b9dfa353a61dd3a980fa7691238
  https://github.com/droonga/droonga-http-server/commit/44cb2b5e58c93b9dfa353a61dd3a980fa7691238

  Message:
    Exit normally on SIGINT and SIGTERM

  Modified files:
    bin/droonga-http-server

  Modified: bin/droonga-http-server (+8 -0)
===================================================================
--- bin/droonga-http-server    2014-04-25 15:06:16 +0900 (c81d452)
+++ bin/droonga-http-server    2014-04-25 15:34:55 +0900 (9e95bf6)
@@ -108,3 +108,11 @@ application.droonga({
 });
 
 server.listen(options.port);
+
+process.on('SIGINT', function() {
+  server.close();
+});
+
+process.on('SIGTERM', function() {
+  server.close();
+});
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index