From 40feaf1c05005153c576396083776c331aa5f01f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 19 Mar 2009 13:27:59 -0700 Subject: unicorn_rails: fix standard pid path setup This was broken in the last commit (d1ff8c5): start libifying common launcher code --- bin/unicorn_rails | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 4b0a34e..4ec6438 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -211,5 +211,9 @@ end %w(cache pids sessions sockets).each do |dir| FileUtils.mkdir_p("tmp/#{dir}") end -Unicorn::Launcher.daemonize! if daemonize + +if daemonize + options[:pid] = rails_pid + Unicorn::Launcher.daemonize! +end Unicorn.run(app, options) -- cgit v1.2.3-24-ge0c7