Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man8 Document that run_rc_command can take extra p...
details: https://anonhg.NetBSD.org/src/rev/d74ee3e30ecb
branches: trunk
changeset: 753100:d74ee3e30ecb
user: jmmv <jmmv%NetBSD.org@localhost>
date: Mon Mar 15 19:00:20 2010 +0000
description:
Document that run_rc_command can take extra parameters and will pass those
to the command being executed.
diffstat:
share/man/man8/rc.subr.8 | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 3b8a847e8575 -r d74ee3e30ecb share/man/man8/rc.subr.8
--- a/share/man/man8/rc.subr.8 Mon Mar 15 18:59:47 2010 +0000
+++ b/share/man/man8/rc.subr.8 Mon Mar 15 19:00:20 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index