diff options
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", |