[Groonga-commit] droonga/droonga-http-server at 9919dac [master] Do shutdown process for SIGHUP also

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 9 16:17:03 JST 2015


YUKI Hiroshi	2015-04-09 16:17:03 +0900 (Thu, 09 Apr 2015)

  New Revision: 9919dac6abd53d0a65956db41aad093d7169ab52
  https://github.com/droonga/droonga-http-server/commit/9919dac6abd53d0a65956db41aad093d7169ab52

  Message:
    Do shutdown process for SIGHUP also

  Modified files:
    bin/droonga-http-server

  Modified: bin/droonga-http-server (+5 -0)
===================================================================
--- bin/droonga-http-server    2015-04-09 16:16:28 +0900 (a0e3aac)
+++ bin/droonga-http-server    2015-04-09 16:17:03 +0900 (e16fb29)
@@ -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();
-------------- next part --------------
HTML����������������������������...
下載 



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