diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-09 15:18:26 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-09 15:18:26 -0700 |
commit | dd57428309cb5d245dbc1200e1a6f8fe11ab4ed0 (patch) | |
tree | f693d96c7b027dac41c400f2f5fc31f6b9f7e198 /bin/unicorn | |
parent | 5b308775a8c46d71b126f623cef196540a44985a (diff) | |
download | unicorn-dd57428309cb5d245dbc1200e1a6f8fe11ab4ed0.tar.gz |
This reverts commit 4414d9bf34f162a604d2aacc765ab1ca2fc90404.
Diffstat (limited to 'bin/unicorn')
-rwxr-xr-x | bin/unicorn | 4 |
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", |