From owner-freebsd-rc@FreeBSD.ORG Wed Jan 26 16:32:32 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 7295816A4DC for ; Wed, 26 Jan 2005 16:32:32 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E00643D31 for ; Wed, 26 Jan 2005 16:32:32 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j0QGXcBL016010; Wed, 26 Jan 2005 08:33:38 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j0QGXcTL016009; Wed, 26 Jan 2005 08:33:38 -0800 Date: Wed, 26 Jan 2005 08:33:38 -0800 From: Brooks Davis To: Tobias Roth Message-ID: <20050126163338.GA12288@odin.ac.hmc.edu> References: <20050126144648.GA13291@droopy.unibe.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: <20050126144648.GA13291@droopy.unibe.ch> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu 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: Wed, 26 Jan 2005 16:32:32 -0000 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 26, 2005 at 03:46:48PM +0100, Tobias Roth wrote: > Hi >=20 > I have an rc.d/ scripts in the works that would benefit from a second > argument, eg /etc/rc.d/myscript start foobar >=20 > As it looks, this is not possible with the current mechanism of > run_rc_command(). So my questions: >=20 > 1) is there already a corrct way to do this? > 2) would it make sense of not using run_rc_command() and doing the > argument handling in the script itself, therefore allowing multiple > arguments? or would this be a stupid idea and against the design of > rcng? >=20 > I can live without this, but if it's somehow possible, it would be nice. > Also, if this would theoretically make sense, but rcng doesn't allow it > yet, I might have go at improving rcng in this direction. Take a look at /etc/rc.d/netif for a script that does this. You do have to do the stop and start bits yourself in this case. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --zhXaljGHf11kAtnf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFB98ZhXY6L6fI4GtQRAnnJAJ4+F86IawMWNWyASKZvs1Qb+7+pGACdHYpe UJS1aF1GJ29+6kB9FEHQr6A= =hPrE -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--