From owner-freebsd-current@FreeBSD.ORG Tue Jul 29 05:18:27 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1267F37B401 for ; Tue, 29 Jul 2003 05:18:27 -0700 (PDT) Received: from pool-151-200-10-97.res.east.verizon.net (pool-138-88-11-203.res.east.verizon.net [138.88.11.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id D658543F75 for ; Tue, 29 Jul 2003 05:18:25 -0700 (PDT) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net (1ic28jfo0vejb313@localhost [127.0.0.1]) id h6TCION4093020; Tue, 29 Jul 2003 08:18:24 -0400 (EDT) (envelope-from mtm@identd.net) Received: (from mtm@localhost) by kokeb.ambesa.net (8.12.9/8.12.9/Submit) id h6TCIN0C093019; Tue, 29 Jul 2003 08:18:23 -0400 (EDT) (envelope-from mtm@identd.net) X-Authentication-Warning: kokeb.ambesa.net: mtm set sender to mtm@identd.net using -f Date: Tue, 29 Jul 2003 08:18:23 -0400 From: Mike Makonnen To: Tobias Roth Message-ID: <20030729121822.GA92876@kokeb.ambesa.net> References: <20030729111351.GA6475@speedy.unibe.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030729111351.GA6475@speedy.unibe.ch> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD/5.1-CURRENT (i386) cc: current@freebsd.org Subject: Re: rcng: additional argument to run_rc_command X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 12:18:27 -0000 On Tue, Jul 29, 2003 at 01:13:51PM +0200, Tobias Roth wrote: > is it possible to give an extra argument to an $extra_commands > command? the usual call to run_rc_command > > run_rc_command "$1" > > suggests otherwise, as $1 already is the name of the command to > be executed (start, stop, etc). > > would this be possible/a good idea to implement? > I very much doubt it. If you want to use multiple arguments just special case it in the script itself (i.e - rc.d/netif). Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon!