diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-19 13:27:59 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-19 13:27:59 -0700 |
commit | 40feaf1c05005153c576396083776c331aa5f01f (patch) | |
tree | bbeb35da04f96ccf27eba2ad1db6240f8c712351 /bin/unicorn_rails | |
parent | d1ff8c5bdb286ae212962ec9034d6a345cf09b30 (diff) | |
download | unicorn-40feaf1c05005153c576396083776c331aa5f01f.tar.gz |
This was broken in the last commit (d1ff8c5): start libifying common launcher code
Diffstat (limited to 'bin/unicorn_rails')
-rwxr-xr-x | bin/unicorn_rails | 6 |
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) |