unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Unicorn renaming unicorn.pid.oldbin back to unicorn.pid (or, is unicorn afraid to die?)
@ 2011-01-24  1:09 Sean Grove
  2011-01-24 19:09 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Grove @ 2011-01-24  1:09 UTC (permalink / raw)
  To: mongrel-unicorn

Whenever I send a USR2 signal to unicorn, it correctly renames the pid file from unicorn.pid to unicorn.pid.oldbin, and a new instance starts launching. However, almost immediately (~2 seconds), it renames it back to unicorn.pid. The new instance of unicorn finished launching to find that unicorn.pid is already running, and refuses to start up.

I'm not sure if I've misconfigured something, but I'd love to get to the bottom of this!

Thanks for the help!

All the best,
Sean Grove
_______________________________________________
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unicorn renaming unicorn.pid.oldbin back to unicorn.pid (or, is unicorn afraid to die?)
  2011-01-24  1:09 Unicorn renaming unicorn.pid.oldbin back to unicorn.pid (or, is unicorn afraid to die?) Sean Grove
@ 2011-01-24 19:09 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2011-01-24 19:09 UTC (permalink / raw)
  To: unicorn list

Sean Grove <otokorasii@gmail.com> wrote:
> Whenever I send a USR2 signal to unicorn, it correctly renames the pid
> file from unicorn.pid to unicorn.pid.oldbin, and a new instance starts
> launching. However, almost immediately (~2 seconds), it renames it
> back to unicorn.pid. The new instance of unicorn finished launching to
> find that unicorn.pid is already running, and refuses to start up.
> 
> I'm not sure if I've misconfigured something, but I'd love to get to
> the bottom of this!

Are you somehow clearing the UNICORN_FD environment variable in your
master process (perhaps when you load your app).  Which version of Ruby
are you using?  What does your stderr log say?

-- 
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-24 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24  1:09 Unicorn renaming unicorn.pid.oldbin back to unicorn.pid (or, is unicorn afraid to die?) Sean Grove
2011-01-24 19:09 ` Eric Wong

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).