From owner-freebsd-rc@FreeBSD.ORG Thu Aug 30 08:39:45 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 9E4A6106566B; Thu, 30 Aug 2012 08:39:45 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 05EDC14E27F; Thu, 30 Aug 2012 08:39:44 +0000 (UTC) Message-ID: <503F26D0.1050109@FreeBSD.org> Date: Wed, 29 Aug 2012 22:39:44 -1000 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Stanislav Sedov References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> <503ED8C5.2010203@FreeBSD.org> <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> In-Reply-To: <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Steve Wills , freebsd-rc@FreeBSD.org, ruby@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 08:39:45 -0000 On 08/29/2012 05:36 PM, Stanislav Sedov wrote: > On Wed, 29 Aug 2012 23:06:45 -0400 > Steve Wills mentioned: > >> On 08/29/12 21:38, Doug Barton wrote: >>> >>> I'm pretty sure you actually want to use command_interpreter instead of >>> procname. It should actually be very rare to use procname directly in an >>> rc.d script. >> >> Got it, although that means picking the value at build time, but that >> seems OK. >> > > We actually already have a practice of doing that with RUBY_SHEBANG, so it > seems reasonable. GMTA. :) I'm sensitive to the issue of this being build time reliant which means that if the user upgrades their ruby version the rc.d script could become outdated. I think that this could be ameliorated by forcing the shebang line to be just /usr/local/bin/ruby, but I'm not sure how ruby handles that. One way we could improve the situation would be to support a glob pattern for command_interpreter. Haven't thought through the implications of that though. Doug