From: "Iñaki Baz Castillo" <ibc@aliax.net>
To: mongrel-unicorn@rubyforge.org
Subject: Why "--pid" is deprecated?
Date: Thu, 24 Dec 2009 14:36:26 +0100 [thread overview]
Message-ID: <200912241436.26761.ibc@aliax.net> (raw)
By inspecting bin/unicorn I've realized that "--pid" file exists but it's
deprecated:
opts.on("-P", "--pid FILE", "DEPRECATED") do |f|
warn %q{Use of --pid/-P is strongly discouraged}
warn %q{Use the 'pid' directive in the Unicorn config file instead}
options[:pid] = f
end
Could I know why? In order to build a service init script is really common the
init script to handle the PID file so it can start, restart or stop the
process runnining under that PID value.
Which is the real advantage of using "pid" directive in config file rather
than "--pid"?
Thanks.
--
Iñaki Baz Castillo <ibc@aliax.net>
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
next reply other threads:[~2009-12-24 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-24 13:36 Iñaki Baz Castillo [this message]
2009-12-24 19:17 ` Why "--pid" is deprecated? Eric Wong
2009-12-25 22:21 ` Iñaki Baz Castillo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200912241436.26761.ibc@aliax.net \
--to=ibc@aliax.net \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).