unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Jon Wood <jon@hubbub.co.uk>
To: mongrel-unicorn@rubyforge.org
Subject: PID files not being removed on shutdown
Date: Tue, 18 Jun 2013 13:41:20 +0100	[thread overview]
Message-ID: <CAErw9DvTeqVKvtBw3JDJ2OAR2mZLLgEiLfermLYvg8_eY4teeQ@mail.gmail.com> (raw)

Hello,

I'm quite consistently seeing an issue where Unicorn leaves its PID
files in place after a clean shut down, which is causing some issues
when deploying releases that update Unicorn config.

We're doing hot restarts with USR2+QUIT, and using Upstart for process
supervision based on the presence of a PID file (this admittedly might
be a mistake, but I've not seen any better solutions).

This works fine in the case of a hot restart since Unicorn correctly
updates the PID file, however when we change the configuration for
Unicorn shutting down the master process doesn't remove the PID file,
so the supervising Upstart script doesn't detect that the master has
been shut down and bring up a new one.

I've created a gist[1] of our Upstart and Unicorn configuration files.
As I say, we might just be doing something stupid here, but Google
doesn't seem to have shed any light on the issue.

Thanks for any help,
Jon

[1] https://gist.github.com/jellybob/3789c3f3a00989b63d74
_______________________________________________
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:[~2013-06-18 12:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 12:41 Jon Wood [this message]
2013-06-18 16:48 ` PID files not being removed on shutdown 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=CAErw9DvTeqVKvtBw3JDJ2OAR2mZLLgEiLfermLYvg8_eY4teeQ@mail.gmail.com \
    --to=jon@hubbub.co.uk \
    --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).