diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:14:55 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:16:40 -0700 |
commit | 3871cb11cfb68b6fa02a646caf3765e309d38494 (patch) | |
tree | 1685b93ae558ee7788d3cc542c459fc6e91720cc /bin/unicorn_rails | |
parent | 2133a9c7b49b07ce771877d5e00cf83dd3038261 (diff) | |
download | unicorn-3871cb11cfb68b6fa02a646caf3765e309d38494.tar.gz |
It's pointless to support multiple instances of it since this is per-process. However, the constant itself is now modifiable if anybody needs to tweak things for reexecution using a before_exec hook.
Diffstat (limited to 'bin/unicorn_rails')
-rwxr-xr-x | bin/unicorn_rails | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/unicorn_rails b/bin/unicorn_rails index b3c3631..083e9d8 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -3,8 +3,7 @@ require 'unicorn/launcher' require 'optparse' require 'fileutils' -rails_pid = File.join(Unicorn::HttpServer::DEFAULT_START_CTX[:cwd], - "/tmp/pids/unicorn.pid") +rails_pid = "#{Unicorn::HttpServer::START_CTX[:cwd]}/tmp/pids/unicorn.pid" cmd = File.basename($0) daemonize = false listeners = [] |