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.6 required=5.0 tests=AWL,FREEMAIL_FROM, RP_MATCHES_RCVD,T_DKIM_INVALID shortcircuit=no autolearn=unavailable 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 5A2341F4CA for ; Mon, 10 Oct 2011 00:13:39 +0000 (UTC) Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C318D3C8042; Sun, 9 Oct 2011 20:13:38 -0400 (EDT) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org X-Greylist: delayed 412 seconds by postgrey-1.31 at rubyforge.org; Sun, 09 Oct 2011 19:38:37 EDT Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by rubyforge.org (Postfix) with ESMTP id C67621858389 for ; Sun, 9 Oct 2011 19:38:37 -0400 (EDT) Received: by pzk37 with SMTP id 37so15550800pzk.9 for ; Sun, 09 Oct 2011 16:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=bzVeOXBK0Tgw7WeoFFHGv/jQkhajaShcs67nSP1fkw4=; b=VP73fBik/v+63Trt9wzLOzicXvvO8S9NlB+brGy+ALqgkc6GRF0zBuJZu+rAJZzr/m yfyJyCsMF4LRQq8GmHPpSbzdBDD+BcQfVIUAdJj/RjhPaOGNN/Xf1qpoDyo9FENeAkLx 7tCEdwWDociBOrgvo6CJ5Cs/2du+jnaO6Mmec= Received: by 10.68.19.42 with SMTP id b10mr32940224pbe.83.1318203105073; Sun, 09 Oct 2011 16:31:45 -0700 (PDT) Received: from alex-mbp-2.local (cpe-75-83-127-198.socal.res.rr.com. [75.83.127.198]) by mx.google.com with ESMTPS id v7sm18376283pbr.10.2011.10.09.16.31.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Oct 2011 16:31:44 -0700 (PDT) Date: Sun, 9 Oct 2011 16:31:42 -0700 From: Alex Sharp To: unicorn list Message-ID: In-Reply-To: References: Subject: Re: How to automate the restarting of Unicorn? X-Mailer: sparrow 1.4 (build 904) MIME-Version: 1.0 Content-Disposition: inline Cc: Pai-Hung Chen 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 On Friday, October 7, 2011 at 8:20 PM, Pai-Hung Chen wrote: > My question is: By the time the "before_exec" hook is executed, is it > guaranteed that unicorn.pid.oldbin ahas lready created (otherwise we > have a racing condition here)? Or is there a better way to achieve > what I want? I'm not 100% positive, but about 98% -- yes, you can count on the fact that the *.oldbin file will exist on disk before the before_exec block is executed. Eric can confirm this, but I've never had a problem with it... > > Please Cc me as I am not on the mailing list. > > Please also let me know if there is a better place to ask this question. You're in the right place -- this is a pretty active mailing list :) -- Alex Sharp github.com/ajsharp twitter.com/ajsharp alexjsharp.com _______________________________________________ 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