unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Michael Graff <explorer@flame.org>
To: mongrel-unicorn@rubyforge.org
Subject: Different behavior with pid files and SIGUSR2
Date: Tue, 28 Jan 2014 13:49:27 -0600	[thread overview]
Message-ID: <BAD434C1-52EF-4E42-A26D-A56D308A390B@flame.org> (raw)

Previously, when I sent a SIGUSR2 to Unicorn, I generally saw this happen:

(1)  The PID file was renamed (or copied) to include .oldbin
(2)  The new instance started spinning up, and create a new .pid file.
(3)  At some point, the old instance would be told to shut down from my unicorn.rb file, once workers started.
(4)  The .oldbin would go away.

What I appear to be seeing now, with 4.7.0, is:

(1)  The PID file is removed.
(2)  The new instance spins up, but until it starts its first worker, no .pid file is created.

I don't mind the new behavior particularly, but it did surprise me a bit.  Is this new behavior working as intended?

--Michael

_______________________________________________
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

             reply	other threads:[~2014-01-28 19:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-28 19:49 Michael Graff [this message]
2014-01-28 20:03 ` Different behavior with pid files and SIGUSR2 Eric Wong
2014-01-28 20:08   ` Michael Graff
2014-01-28 20:16     ` Eric Wong

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=BAD434C1-52EF-4E42-A26D-A56D308A390B@flame.org \
    --to=explorer@flame.org \
    --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).