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: SIGWINCH Date: Mon, 12 Jul 2010 21:34:04 -0700 Message-ID: <20100713043404.GC9716@dcvr.yhbt.net> References: <4C3BEACF.7040301@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 1278996227 10534 80.91.229.12 (13 Jul 2010 04:43:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2010 04:43:47 +0000 (UTC) To: unicorn list Original-X-From: mongrel-unicorn-bounces@rubyforge.org Tue Jul 13 06:43:46 2010 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: <4C3BEACF.7040301@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:632 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OYXLO-00032N-8U for gclrug-mongrel-unicorn@m.gmane.org; Tue, 13 Jul 2010 06:43:46 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id A22051858375; Tue, 13 Jul 2010 00:43:45 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 0BB2918582EE for ; Tue, 13 Jul 2010 00:34:05 -0400 (EDT) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id 2F7341F541; Tue, 13 Jul 2010 04:34:05 +0000 (UTC) Lawrence Pit wrote: > Hi, > > I followed the procedure to replace a running unicorn. Works fine, > except for one thing: after I decide to back out, ie I send a HUP to the > old master followed by a QUIT to the new master, then: > > 1. the new master does die, and the old master does work again > > 2. the "old" master keeps running with a process name of "master (old)" > > 3. the "old" master keeps running with a pid file named unicorn.pid.oldbin > > Because the file is now named unicorn.pid.oldbin a later attempt to > deploy using scripts is made rather difficult as they assume a pid file > named unicorn.pid. > > How could I get unicorn to rename the pid file back to unicorn.pid ? I > see some code in method +reap_all_workers+ that suggests it would rename > the pid file back to its original, but for some reason it doesn't for > me. Am I missing a step? Hi Lawrence, Are you using a config file to specify pid or --pid from the command-line? The config file should be more reliable. I'll take a deeper look at it in a bit. -- 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