From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: PID is not regenerated when using "-P" and the master receives USR2
Date: Thu, 31 Dec 2009 12:01:17 -0800 [thread overview]
Message-ID: <20091231200117.GC24888@dcvr.yhbt.net> (raw)
In-Reply-To: <200912311923.41504.ibc@aliax.net>
Iñaki Baz Castillo <ibc@aliax.net> wrote:
> El Jueves, 31 de Diciembre de 2009, Iñaki Baz Castillo escribió:
> > In case of using "unicorn -P PIDFILE" when the master receives a USR2 the
> > pidfile is deleted and not regenerated anymore.
> >
> > In case of using "pid" mehotd in config file then it works well.
> >
> > It seems a bug, do I miss something?
>
> Definitively I think this is the expected behaviour as the new binary has no
> way to know the PIDFILE passed as commandline argument to original binary, am
> I right?
All command-line arguments are passed to the child process. We capture
the command-line as soon as possible before option parsing happens.
When USR2 is received, we create a new pid file for the old
binary and add the ".oldbin" suffix to the pathname.
That said, "-P" in the command-line and "pid" in the config file should
work the same. Despite being officially deprecated, "-P" is used
extensively and interchangeably with "pid" in the existing tests.
--
Eric Wong
_______________________________________________
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 prev parent reply other threads:[~2009-12-31 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 18:01 PID is not regenerated when using "-P" and the master receives USR2 Iñaki Baz Castillo
2009-12-31 18:23 ` Iñaki Baz Castillo
2009-12-31 20:01 ` Eric Wong [this message]
2009-12-31 20:40 ` Iñaki Baz Castillo
2009-12-31 21:26 ` Iñaki Baz Castillo
2009-12-31 21:41 ` Eric Wong
2010-01-01 18:42 ` 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=20091231200117.GC24888@dcvr.yhbt.net \
--to=normalperson@yhbt.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).