[Groonga-commit] droonga/droonga-engine at 5ff7623 [master] Support sigdump

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 3 12:35:44 JST 2014


Kouhei Sutou	2014-06-03 12:35:44 +0900 (Tue, 03 Jun 2014)

  New Revision: 5ff7623e1aba073be76c001038d4a6d671a02acd
  https://github.com/droonga/droonga-engine/commit/5ff7623e1aba073be76c001038d4a6d671a02acd

  Message:
    Support sigdump

  Modified files:
    droonga-engine.gemspec
    lib/droonga/command/droonga_engine.rb

  Modified: droonga-engine.gemspec (+1 -0)
===================================================================
--- droonga-engine.gemspec    2014-06-03 12:24:54 +0900 (db62613)
+++ droonga-engine.gemspec    2014-06-03 12:35:44 +0900 (54c055b)
@@ -45,6 +45,7 @@ Gem::Specification.new do |gem|
   gem.add_dependency "faraday"
   gem.add_dependency "faraday_middleware"
   gem.add_dependency "archive-zip"
+  gem.add_dependency "sigdump"
   gem.add_development_dependency "rake"
   gem.add_development_dependency "bundler"
   gem.add_development_dependency "test-unit"

  Modified: lib/droonga/command/droonga_engine.rb (+4 -0)
===================================================================
--- lib/droonga/command/droonga_engine.rb    2014-06-03 12:24:54 +0900 (296931b)
+++ lib/droonga/command/droonga_engine.rb    2014-06-03 12:35:44 +0900 (0b24223)
@@ -19,6 +19,7 @@ require "ipaddr"
 require "fileutils"
 
 require "coolio"
+require "sigdump"
 
 require "droonga/path"
 require "droonga/serf"
@@ -268,6 +269,9 @@ module Droonga
           trap(:HUP) do
             restart_immediately
           end
+          trap(:USR2) do
+            Sigdump.dump
+          end
         end
 
         def stop_gracefully
-------------- next part --------------
HTML����������������������������...
Télécharger 



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