From: Eric Wong <firstname.lastname@example.org>
To: unicorn list <email@example.com>
Date: Wed, 18 Aug 2010 16:34:00 -0700 [thread overview]
Message-ID: <20100818233400.GA11128@dcvr.yhbt.net> (raw)
Jimmy Soho <firstname.lastname@example.org> wrote:
> PS. II: While I trying out various things I found that if I modified
> the before_exec hook, then deployed that code, send USR2, then it
> executes the before_exec hook of the old master, not the new master.
> So I then had to send a USR2 a second time to see the new code in
> before_exec taking effect. Is that intentional behaviour?
Yes. USR2 doesn't reload the config file before by default. Send a HUP
before USR2 if you want it to reload the config file. Just keep in mind
if you add any new dependencies on your new deploy and HUP, things could
break, too, especially if you're using "preload_app true".
> PS. III: Haven't tested it yet, but in case a USR2 fails, and unicorn
> reverts back to the old master, does the old master then have the new
> environment variable values? Or does it run the before_exec hook again
> for the old master?
The old master doesn't get affected by environment (or any other local)
changes in before_exec. before_exec only runs in the new master
process, so it can only affect the new master process (unless it sends
signals to the old master).
Unicorn mailing list - email@example.com
Do not quote signatures (like this one) or top post when replying
prev parent reply other threads:[~2010-08-18 23:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-18 0:02 ` Jimmy Soho
2010-08-18 1:14 ` Eric Wong
2010-08-18 2:23 ` Jimmy Soho
2010-08-18 2:45 ` Eric Wong
2010-08-18 3:39 ` Jimmy Soho
2010-08-18 7:14 ` Eric Wong
2010-08-18 13:20 ` Jimmy Soho
2010-08-18 23:34 ` Eric Wong [this message]
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:
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).