Navigation Menu

Skip to content

Commit

Permalink
Support sigdump
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 3, 2014
1 parent b863505 commit 5ff7623
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions droonga-engine.gemspec
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions lib/droonga/command/droonga_engine.rb
Expand Up @@ -19,6 +19,7 @@
require "fileutils"

require "coolio"
require "sigdump"

require "droonga/path"
require "droonga/serf"
Expand Down Expand Up @@ -268,6 +269,9 @@ def trap_signals
trap(:HUP) do
restart_immediately
end
trap(:USR2) do
Sigdump.dump
end
end

def stop_gracefully
Expand Down

0 comments on commit 5ff7623

Please sign in to comment.