Document that run_rc_command can take extra parameters and will pass those

to the command being executed.
This commit is contained in:
jmmv 2010-03-15 19:00:20 +00:00
parent bff64ddc47
commit f54900017c

View File

@ -1,4 +1,4 @@
.\" $NetBSD: rc.subr.8,v 1.25 2009/10/05 09:57:18 apb Exp $ .\" $NetBSD: rc.subr.8,v 1.26 2010/03/15 19:00:20 jmmv Exp $
.\" .\"
.\" Copyright (c) 2002-2004 The NetBSD Foundation, Inc. .\" Copyright (c) 2002-2004 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE. .\" POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.Dd October 5, 2009 .Dd March 13, 2010
.Dt RC.SUBR 8 .Dt RC.SUBR 8
.Os .Os
.Sh NAME .Sh NAME
@ -64,7 +64,7 @@
.It .It
.Ic reverse_list Ar item Op Ar ... .Ic reverse_list Ar item Op Ar ...
.It .It
.Ic run_rc_command Ar argument .Ic run_rc_command Ar argument [parameters]
.It .It
.Ic run_rc_script Ar file Ar argument .Ic run_rc_script Ar file Ar argument
.It .It
@ -338,7 +338,7 @@ prefixed by
Print the list of Print the list of
.Ar items .Ar items
in reverse order. in reverse order.
.It Ic run_rc_command Ar argument .It Ic run_rc_command Ar argument Op Ar parameter ...
Run the Run the
.Ar argument .Ar argument
method for the current method for the current
@ -348,6 +348,8 @@ script, based on the settings of various shell variables.
is extremely flexible, and allows fully functional is extremely flexible, and allows fully functional
.Xr rc.d 8 .Xr rc.d 8
scripts to be implemented in a small amount of shell code. scripts to be implemented in a small amount of shell code.
The optional set of parameters is passed verbatim to the command, but not to its
pre/post hooks.
.Pp .Pp
.Ar argument .Ar argument
is searched for in the list of supported commands, which may be one is searched for in the list of supported commands, which may be one