From dd57428309cb5d245dbc1200e1a6f8fe11ab4ed0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Mar 2009 15:18:26 -0700 Subject: Revert "Remove -P/--pid switch from CLI" This reverts commit 4414d9bf34f162a604d2aacc765ab1ca2fc90404. --- bin/unicorn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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", -- cgit v1.2.3-24-ge0c7