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

Back to archive index

Kouhei Sutou kou****@clear*****
Fri Apr 10 11:32:10 JST 2015


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

SIGHUPのときは設定ファイルを再読込するという挙動をするデーモ
ンが多いので、シャットダウンじゃなくて再読み込み用にとってお
く(今はデフォルトの挙動のままにしておく)のがいいんじゃない
かと思いました。

In <9919dac6abd53d0a65956db41aad093d7169ab52 �� jenkins.clear-code.com>
  "[Groonga-commit] droonga/droonga-http-server �� 9919dac [master] Do shutdown process for SIGHUP also" on Thu, 09 Apr 2015 16:17:03 +0900,
  YUKI Hiroshi <null+groonga �� clear-code.com> wrote:

> 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();




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