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.6 required=5.0 tests=AWL,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD,T_DKIM_INVALID shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Lawrence Pit Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: SIGWINCH Date: Tue, 13 Jul 2010 14:25:51 +1000 Message-ID: <4C3BEACF.7040301@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1278995176 8245 80.91.229.12 (13 Jul 2010 04:26:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2010 04:26:16 +0000 (UTC) To: unicorn list Original-X-From: mongrel-unicorn-bounces@rubyforge.org Tue Jul 13 06:26:14 2010 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=f/fWMVPOokjrapQQ2I3g7rQr/EzjtuG6kN5CI9fGM74=; b=k/EqKhNFmKNBCdShW4ebNMaV+j5c/6BYvKig+VIXAbD7zV384wqvYPUB0OOupFT2Gk 9SvMyO4izDMnFVq2fYcJasN2F2ucmoQroucZeS4xIVOmCjmu5VutQr3BN5LDRHg44o8Y gvMiRR+skt7jYSBUSgDHHotoWIXpSqefUBeEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=TIZxEvsTMDh9dVvY7irDWOkzjkuLjSgw2wt5jjD8hk5HuzDhLodh+iviMqXVOAIvIG bsX0d/Fo8gF6Q3eFYw6YZOuGzKCfYrI7fiAHYNgCPbVKipOSrdREYpPwZC0W926ibl03 +YvEu0rfD+GHQPYeoQs+94+nhgSqr3Dx/VvdY= User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) 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:631 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OYX4K-0007MT-9P for gclrug-mongrel-unicorn@m.gmane.org; Tue, 13 Jul 2010 06:26:08 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 26A651858348; Tue, 13 Jul 2010 00:26:05 -0400 (EDT) Received: from mail-pv0-f178.google.com (mail-pv0-f178.google.com [74.125.83.178]) by rubyforge.org (Postfix) with ESMTP id 2C82D1858348 for ; Tue, 13 Jul 2010 00:25:57 -0400 (EDT) Received: by pva18 with SMTP id 18so3068658pva.23 for ; Mon, 12 Jul 2010 21:25:57 -0700 (PDT) Received: by 10.142.211.6 with SMTP id j6mr17903591wfg.165.1278995156982; Mon, 12 Jul 2010 21:25:56 -0700 (PDT) Received: from copa.local ([124.149.45.23]) by mx.google.com with ESMTPS id c23sm5353454rvf.0.2010.07.12.21.25.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Jul 2010 21:25:55 -0700 (PDT) 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? PS. Using unicorn 1.1.1. Cheers, Lawrence _______________________________________________ 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