about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-19 13:27:59 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-19 13:27:59 -0700
commit40feaf1c05005153c576396083776c331aa5f01f (patch)
treebbeb35da04f96ccf27eba2ad1db6240f8c712351 /bin
parentd1ff8c5bdb286ae212962ec9034d6a345cf09b30 (diff)
downloadunicorn-40feaf1c05005153c576396083776c331aa5f01f.tar.gz
This was broken in the last commit (d1ff8c5):
  start libifying common launcher code
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn_rails6
1 files changed, 5 insertions, 1 deletions
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)