From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,MSGID_FROM_MTA_HEADER, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: Re: Unicorn renaming unicorn.pid.oldbin back to unicorn.pid (or, is unicorn afraid to die?) Date: Mon, 24 Jan 2011 19:09:39 +0000 Message-ID: <20110124190939.GA13545@dcvr.yhbt.net> References: <353A7398-DEBE-426B-9BC1-AB43334CFB4E@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295896769 16673 80.91.229.12 (24 Jan 2011 19:19:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 19:19:29 +0000 (UTC) To: unicorn list Original-X-From: mongrel-unicorn-bounces@rubyforge.org Mon Jan 24 20:19:25 2011 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Content-Disposition: inline In-Reply-To: <353A7398-DEBE-426B-9BC1-AB43334CFB4E@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Xref: news.gmane.org gmane.comp.lang.ruby.unicorn.general:829 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PhRwi-0003CH-Vf for gclrug-mongrel-unicorn@m.gmane.org; Mon, 24 Jan 2011 20:19:25 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 5A20A1858346; Mon, 24 Jan 2011 14:19:24 -0500 (EST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id E3BB91858363 for ; Mon, 24 Jan 2011 14:09:40 -0500 (EST) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id 3D6CB1F4F5; Mon, 24 Jan 2011 19:09:40 +0000 (UTC) Sean Grove 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