From owner-freebsd-questions@FreeBSD.ORG Thu Dec 14 12:16:16 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 BB72F16A4D0 for ; Thu, 14 Dec 2006 12:16:16 +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 2146B4454D for ; Thu, 14 Dec 2006 12:05:55 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 14 Dec 2006 12:07:22 -0000 Received: from x475.vpn.hrz.tu-darmstadt.de (EHLO [192.168.1.12]) [130.83.73.221] by mail.gmx.net (mp010) with SMTP; 14 Dec 2006 13:07:22 +0100 X-Authenticated: #5465401 Message-ID: <45813EC0.8090701@gmx.de> Date: Thu, 14 Dec 2006 13:08:32 +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> In-Reply-To: <9EF4201C-AF13-4659-AD7A-28C077DBAA5B@ashleymoran.me.uk> 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 12:16:16 -0000 Ashley Moran wrote: > Hi > > I just wrote a little ruby web server for internal use. I wrote it on > my mac to deploy on FreeBSD, so I used "#!/usr/bin/env ruby" as the > shebang. But when I do that, I can't stop the server with my rc.d > script (below). If I change them both to /usr/local/bin/ruby I can make > it work. > > Is it possible to use /usr/bin/env like this? > All you need to do is to set command_interpreter="/usr/bin/env" for more information have a look at rc.subr(8).