about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-09 15:18:26 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-09 15:18:26 -0700
commitdd57428309cb5d245dbc1200e1a6f8fe11ab4ed0 (patch)
treef693d96c7b027dac41c400f2f5fc31f6b9f7e198 /bin
parent5b308775a8c46d71b126f623cef196540a44985a (diff)
downloadunicorn-dd57428309cb5d245dbc1200e1a6f8fe11ab4ed0.tar.gz
This reverts commit 4414d9bf34f162a604d2aacc765ab1ca2fc90404.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/unicorn b/bin/unicorn
index 60b7c84..a13facc 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -63,6 +63,10 @@ opts = OptionParser.new("", 24, '  ') do |opts|
     daemonize = d ? true : false
   end
 
+  opts.on("-P", "--pid FILE", "file to store PID (default: none)") do |f|
+    options[:pid] = File.expand_path(f)
+  end
+
   # Unicorn-specific stuff
   opts.on("-l", "--listen {HOST:PORT|PATH}",
           "listen on HOST:PORT or PATH",