Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2005 15:46:48 +0100
From:      Tobias Roth <roth@iam.unibe.ch>
To:        freebsd-rc@freebsd.org
Subject:   rc.d scripts with multiple arguments
Message-ID:  <20050126144648.GA13291@droopy.unibe.ch>

next in thread | raw e-mail | index | archive | help

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.

thanks, t.



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