Skip to content

Commit

Permalink
Start publisher as a daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 17, 2014
1 parent a894c64 commit 33c2f4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/droonga-engine-data-publisher
Expand Up @@ -59,7 +59,8 @@ File.open(published_dir + ".pid", "w") do |file|
end

server = HTTPServer.new(:Port => options.port,
:DocumentRoot => published_dir)
:DocumentRoot => published_dir,
:ServerType => WEBrick::Daemon)

trap("INT", "TERM") do
server.shutdown
Expand Down

0 comments on commit 33c2f4d

Please sign in to comment.