Module Name: src
Committed By: jmmv
Date: Mon Mar 15 19:00:20 UTC 2010
Modified Files:
src/share/man/man8: rc.subr.8
Log Message:
Document that run_rc_command can take extra parameters and will pass those
to the command being executed.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/share/man/man8/rc.subr.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man8/rc.subr.8
diff -u src/share/man/man8/rc.subr.8:1.25 src/share/man/man8/rc.subr.8:1.26
--- src/share/man/man8/rc.subr.8:1.25 Mon Oct 5 09:57:18 2009
+++ src/share/man/man8/rc.subr.8 Mon Mar 15 19:00:20 2010
@@ -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.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd October 5, 2009
+.Dd March 13, 2010
.Dt RC.SUBR 8
.Os
.Sh NAME
@@ -64,7 +64,7 @@
.It
.Ic reverse_list Ar item Op Ar ...
.It
-.Ic run_rc_command Ar argument
+.Ic run_rc_command Ar argument [parameters]
.It
.Ic run_rc_script Ar file Ar argument
.It
@@ -338,7 +338,7 @@
Print the list of
.Ar items
in reverse order.
-.It Ic run_rc_command Ar argument
+.It Ic run_rc_command Ar argument Op Ar parameter ...
Run the
.Ar argument
method for the current
@@ -348,6 +348,8 @@
is extremely flexible, and allows fully functional
.Xr rc.d 8
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
.Ar argument
is searched for in the list of supported commands, which may be one