Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 12:01:16 +0300
From:      Mike Makonnen <mtm@identd.net>
To:        Tobias Roth <roth@iam.unibe.ch>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: rc.d scripts with multiple arguments
Message-ID:  <20050128090116.GA7490@rogue.smit.lan>
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

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 !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050128090116.GA7490>