about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-21 11:14:55 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-21 11:16:40 -0700
commit3871cb11cfb68b6fa02a646caf3765e309d38494 (patch)
tree1685b93ae558ee7788d3cc542c459fc6e91720cc /bin
parent2133a9c7b49b07ce771877d5e00cf83dd3038261 (diff)
downloadunicorn-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')
-rwxr-xr-xbin/unicorn_rails3
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 = []