rc.d scripts with multiple arguments

Mike Makonnen mtm at identd.net
Fri Jan 28 01:01:01 PST 2005


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 at identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm at FreeBSD.Org| FreeBSD - Unleash the Daemon !


More information about the freebsd-rc mailing list