From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM,RP_MATCHES_RCVD shortcircuit=no autolearn=no version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by dcvr.yhbt.net (Postfix) with ESMTP id 5D5202968AC for ; Mon, 10 Oct 2011 22:18:24 +0000 (UTC) Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C449A1D78101; Mon, 10 Oct 2011 18:18:23 -0400 (EDT) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by rubyforge.org (Postfix) with ESMTP id A066B185837B for ; Mon, 10 Oct 2011 18:18:18 -0400 (EDT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RDOAl-00075n-Vf for mongrel-unicorn@rubyforge.org; Tue, 11 Oct 2011 00:18:11 +0200 Received: from ip68-5-109-253.oc.oc.cox.net ([68.5.109.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Oct 2011 00:18:11 +0200 Received: from paihungchen by ip68-5-109-253.oc.oc.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Oct 2011 00:18:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: mongrel-unicorn@rubyforge.org From: Pai-Hung Chen Subject: Re: How to automate the restarting of Unicorn? Date: Mon, 10 Oct 2011 22:18:00 +0000 (UTC) Message-ID: References: <4E928ADD.8040900@whitepages.com> <20111010212741.GA3828@dcvr.yhbt.net> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 68.5.109.253 (Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Eric Wong wrote: > Yes, there's no way to safely handle the pid file otherwise because of > race conditions you mentioned. The oldbin pid file must exist because > the new process (which calls before_exec) can clobber the regular pid > file once fork is called. Thanks for the confirmation :) Much appreciated! Pai-Hung _______________________________________________ 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