From owner-freebsd-rc@FreeBSD.ORG Fri Jan 28 09:01:01 2005 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0B8D16A4CE for ; Fri, 28 Jan 2005 09:01:01 +0000 (GMT) Received: from telecom.net.et (sparrow.telecom.net.et [213.55.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 576B343D4C for ; Fri, 28 Jan 2005 09:00:58 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.68.154] (HELO rogue.smit.lan) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP id 71689015; Fri, 28 Jan 2005 11:53:02 +0300 Received: by rogue.smit.lan (Postfix, from userid 1000) id 369E1B81E; Fri, 28 Jan 2005 12:01:17 +0300 (EAT) Date: Fri, 28 Jan 2005 12:01:16 +0300 From: Mike Makonnen To: Tobias Roth Message-ID: <20050128090116.GA7490@rogue.smit.lan> References: <20050126144648.GA13291@droopy.unibe.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050126144648.GA13291@droopy.unibe.ch> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/6.0-CURRENT (i386) cc: freebsd-rc@freebsd.org Subject: Re: rc.d scripts with multiple arguments X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 28 Jan 2005 09:01:01 -0000 On Wed, Jan 26, 2005 at 03:46:48PM +0100, Tobias Roth wrote: > Hi > > I have an rc.d/ scripts in the works that would benefit from a second > argument, eg /etc/rc.d/myscript start foobar > > As it looks, this is not possible with the current mechanism of > run_rc_command(). So my questions: > > 1) is there already a corrct way to do this? This functionality is available. Take a look at rc.d/netif and rc.d/moused to see how it is used. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !