From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.49.16 with SMTP id t16cs39480qcf; Fri, 24 Sep 2010 07:16:02 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCP_V2_zRBRCf5fLkBBoEy8lHpA@googlegroups.com designates 10.229.127.18 as permitted sender) client-ip=10.229.127.18; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCP_V2_zRBRCf5fLkBBoEy8lHpA@googlegroups.com designates 10.229.127.18 as permitted sender) smtp.mail=rack-devel+bncCP_V2_zRBRCf5fLkBBoEy8lHpA@googlegroups.com; dkim=pass header.i=rack-devel+bncCP_V2_zRBRCf5fLkBBoEy8lHpA@googlegroups.com Received: from mr.google.com ([10.229.127.18]) by 10.229.127.18 with SMTP id e18mr2258262qcs.16.1285337761641 (num_hops = 1); Fri, 24 Sep 2010 07:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:received:received:mime-version :subject:from:in-reply-to:date:message-id:references:to:x-mailer :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=4WRAiIuG1lijvaP+ouYEVh3KGwHBWqYZ8lJF5VJYexE=; b=08wiGTQKzNBg8lOnPcXB8tGx6L/eGAJZh03R3lVTU99xuqPrWyQGA3j81oJcxOdsIo q/0VqINxi9Iko0XbT5tRMkgQx+deYLrXxrj7Z2AKI1qqXin8om4LvFIhPgXJVVIdgh6t W9IvnLg8RWrA3r9fFO2p9XlLLKttZDRWVQsa8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:subject:from:in-reply-to:date :message-id:references:to:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; b=oDuqGDQ+C5VLgskl5kJ/L/dwcp3NmIulnINT04W0yrBJQOvBz8+ryjsUeCJmQc/FVm eY1pawt3kHssrWB4rTh8H+8KH2xba6kzn8djv3e35gLPv6PstqvDCSL1xBifIQ9/duqs hBKpWQ6U5QYIun8xHf0ndOgoPF5Bo4mrr97Mo= Received: by 10.229.127.18 with SMTP id e18mr458074qcs.16.1285337759262; Fri, 24 Sep 2010 07:15:59 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.229.19.84 with SMTP id z20ls1094464qca.2.p; Fri, 24 Sep 2010 07:15:58 -0700 (PDT) Received: by 10.229.237.74 with SMTP id kn10mr477376qcb.1.1285337758243; Fri, 24 Sep 2010 07:15:58 -0700 (PDT) Received: by 10.229.237.74 with SMTP id kn10mr477374qcb.1.1285337758205; Fri, 24 Sep 2010 07:15:58 -0700 (PDT) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by gmr-mx.google.com with ESMTP id l26si1263561qck.9.2010.09.24.07.15.57; Fri, 24 Sep 2010 07:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 209.85.216.181 as permitted sender) client-ip=209.85.216.181; Received: by mail-qy0-f181.google.com with SMTP id 33so3822602qyk.5 for ; Fri, 24 Sep 2010 07:15:57 -0700 (PDT) Received: by 10.229.1.193 with SMTP id 1mr2554137qcg.290.1285337756944; Fri, 24 Sep 2010 07:15:56 -0700 (PDT) Received: from [192.168.101.3] ([199.172.231.212]) by mx.google.com with ESMTPS id r36sm2387835qcs.27.2010.09.24.07.15.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Sep 2010 07:15:55 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Fix daemonize behavior broken since 1.0.1 From: James Tucker In-Reply-To: Date: Fri, 24 Sep 2010 11:15:52 -0300 Message-Id: <6C0F22B1-AC07-4624-9133-388CD00297D8@gmail.com> References: To: rack-devel@googlegroups.com X-Mailer: Apple Mail (2.1081) X-Original-Sender: jftucker@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jftucker@gmail.com designates 209.85.216.181 as permitted sender) smtp.mail=jftucker@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit iirc, I fixed this in master already. On 23 Sep 2010, at 18:52, Andrew Bortz wrote: > When rackup is run in daemonize mode, it fails to read the default > config file. In fact, it accepts a config file argument, but unless > that argument is an absolute path, it will also fail to load. The best > way I can think of to fix that is to resolve the absolute path of the > config file before the server is forked off (and chdir's to '/'). > > - Andrew > > diff --git a/lib/rack/server.rb b/lib/rack/server.rb > index 8ef973c..edec62b 100644 > --- a/lib/rack/server.rb > +++ b/lib/rack/server.rb > @@ -226,6 +226,7 @@ module Rack > args.clear if ENV.include?("REQUEST_METHOD") > > options.merge! opt_parser.parse! args > + options[:config] = ::File.expand_path(options[:config]) > ENV["RACK_ENV"] = options[:environment] > options > end