From owner-freebsd-questions@FreeBSD.ORG Thu Dec 14 14:39:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7275916A500 for ; Thu, 14 Dec 2006 14:39:45 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id AAB4C43CCC for ; Thu, 14 Dec 2006 14:38:05 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 14 Dec 2006 14:39:39 -0000 Received: from x106.vpn.hrz.tu-darmstadt.de (EHLO [192.168.1.12]) [130.83.72.106] by mail.gmx.net (mp035) with SMTP; 14 Dec 2006 15:39:39 +0100 X-Authenticated: #5465401 Message-ID: <45816275.9090208@gmx.de> Date: Thu, 14 Dec 2006 15:40:53 +0100 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.8 (X11/20061110) MIME-Version: 1.0 To: Ashley Moran References: <9EF4201C-AF13-4659-AD7A-28C077DBAA5B@ashleymoran.me.uk> <45813EC0.8090701@gmx.de> <45815658.5060201@gmx.de> In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org Subject: Re: rc.d script for processes started with /usr/bin/env X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 14:39:45 -0000 Ashley Moran wrote: > On 14 Dec 2006, at 13:49, [LoN]Kamikaze wrote: >> Are you certain that this is the pidfile used by your server? Are you >> aware that the service is responsible for creating the pidfile, not >> rc.subr? > > Yes, on both counts. Works fine with > > #!/usr/local/bin/ruby > and > command_interpreter="/usr/local/bin/ruby" > > but not > > #!/usr/bin/env ruby > and > command_interpreter="/usr/bin/env" > > > Not that important really (now I've got it working one way), just strange > > > Ashley Maybe env replaces itself with the new process. That would explain this behaviour.