mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Remove documentation for set_rcvar() now that it has been removed.
This commit is contained in:
parent
d302778ed3
commit
c86072f5a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230116
|
@ -35,7 +35,7 @@
|
|||
.\" @(#)rc.8 8.2 (Berkeley) 12/11/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd November 17, 2009
|
||||
.Dd January 14, 2012
|
||||
.Dt RC 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -485,7 +485,7 @@ Most scripts require little more than the following.
|
|||
\&. /etc/rc.subr
|
||||
|
||||
name="foo"
|
||||
rcvar=`set_rcvar`
|
||||
rcvar=foo_enable
|
||||
command="/usr/local/bin/foo"
|
||||
|
||||
load_rc_config $name
|
||||
|
@ -506,7 +506,7 @@ The script may list and define as many commands at it needs.
|
|||
\&. /etc/rc.subr
|
||||
|
||||
name="foo"
|
||||
rcvar=`set_rcvar`
|
||||
rcvar=foo_enable
|
||||
command="/usr/local/bin/foo"
|
||||
extra_commands="nop hello"
|
||||
hello_cmd="echo Hello World."
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd May 18, 2007
|
||||
.Dd January 14, 2012
|
||||
.Dt RC.SUBR 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -73,8 +73,6 @@
|
|||
.It
|
||||
.Ic run_rc_script Ar file Ar argument
|
||||
.It
|
||||
.Ic set_rcvar Op Ar base
|
||||
.It
|
||||
.Ic wait_for_pids Op Ar pid ...
|
||||
.It
|
||||
.Ic warn Ar message
|
||||
|
@ -832,32 +830,6 @@ signal is sent to the parent
|
|||
process, which is assumed to be
|
||||
.Xr rc 8 .
|
||||
Otherwise, the shell exits with a non-zero status.
|
||||
.It Ic set_rcvar Op Ar base
|
||||
Set the variable name required to start a service.
|
||||
In
|
||||
.Fx
|
||||
a daemon is usually controlled by an
|
||||
.Xr rc.conf 5
|
||||
variable consisting of a daemon's name postfixed by the string
|
||||
.Dq Li "_enable" .
|
||||
This is not the case in
|
||||
.Nx .
|
||||
When the following line is included in a script:
|
||||
.Pp
|
||||
.Dl "rcvar=`set_rcvar`"
|
||||
.Pp
|
||||
this function will use the value of the
|
||||
.Va $name
|
||||
variable, which should be defined by the calling script,
|
||||
to construct the appropriate
|
||||
.Xr rc.conf 5
|
||||
knob.
|
||||
If the
|
||||
.Ar base
|
||||
argument is set it will use
|
||||
.Ar base
|
||||
instead of
|
||||
.Va $name .
|
||||
.It Ic wait_for_pids Op Ar pid ...
|
||||
Wait until all of the provided
|
||||
.Ar pids
|
||||
|
|
Loading…
Reference in a new issue