Date: Wed, 26 Jan 2005 08:33:38 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Tobias Roth <roth@iam.unibe.ch> Cc: freebsd-rc@freebsd.org Subject: Re: rc.d scripts with multiple arguments Message-ID: <20050126163338.GA12288@odin.ac.hmc.edu> In-Reply-To: <20050126144648.GA13291@droopy.unibe.ch> References: <20050126144648.GA13291@droopy.unibe.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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? > 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? > > 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 -- 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFB98ZhXY6L6fI4GtQRAnnJAJ4+F86IawMWNWyASKZvs1Qb+7+pGACdHYpe UJS1aF1GJ29+6kB9FEHQr6A= =hPrE -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050126163338.GA12288>
