Deleted Added
full compact
rc.subr.8 (203102) rc.subr.8 (230007)
1.\" $NetBSD: rc.subr.8,v 1.12 2004/01/06 00:52:24 lukem Exp $
2.\"
3.\" Copyright (c) 2002-2004 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Luke Mewburn.
8.\"

--- 13 unchanged lines hidden (view full) ---

22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE.
29.\"
1.\" $NetBSD: rc.subr.8,v 1.12 2004/01/06 00:52:24 lukem Exp $
2.\"
3.\" Copyright (c) 2002-2004 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Luke Mewburn.
8.\"

--- 13 unchanged lines hidden (view full) ---

22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE.
29.\"
30.\" $FreeBSD: head/share/man/man8/rc.subr.8 203102 2010-01-28 01:47:31Z emaste $
30.\" $FreeBSD: head/share/man/man8/rc.subr.8 230007 2012-01-12 06:48:11Z rea $
31.\"
32.Dd May 18, 2007
33.Dt RC.SUBR 8
34.Os
35.Sh NAME
36.Nm rc.subr
37.Nd functions used by system shell scripts
38.Sh SYNOPSIS

--- 295 unchanged lines hidden (view full) ---

334.It Ic rc_usage Ar command ...
335Print a usage message for
336.Va $0 ,
337with
338.Ar commands
339being the list of valid arguments
340prefixed by
341.Sm off
31.\"
32.Dd May 18, 2007
33.Dt RC.SUBR 8
34.Os
35.Sh NAME
36.Nm rc.subr
37.Nd functions used by system shell scripts
38.Sh SYNOPSIS

--- 295 unchanged lines hidden (view full) ---

334.It Ic rc_usage Ar command ...
335Print a usage message for
336.Va $0 ,
337with
338.Ar commands
339being the list of valid arguments
340prefixed by
341.Sm off
342.Dq Bq Li fast | force | one .
342.Dq Bq Li fast | force | one | quiet .
343.Sm on
344.It Ic reverse_list Ar item ...
345Print the list of
346.Ar items
347in reverse order.
348.It Ic run_rc_command Ar argument
349Run the
350.Ar argument

--- 71 unchanged lines hidden (view full) ---

422.Va required_*
423tests failing, and always returns a zero exit status.
424.It Li one
425Skip the checks for
426.Va rcvar
427being set to
428.Dq Li YES ,
429but performs all the other prerequisite tests.
343.Sm on
344.It Ic reverse_list Ar item ...
345Print the list of
346.Ar items
347in reverse order.
348.It Ic run_rc_command Ar argument
349Run the
350.Ar argument

--- 71 unchanged lines hidden (view full) ---

422.Va required_*
423tests failing, and always returns a zero exit status.
424.It Li one
425Skip the checks for
426.Va rcvar
427being set to
428.Dq Li YES ,
429but performs all the other prerequisite tests.
430.It Li quiet
431Inhibits some verbose diagnostics.
432Currently, this includes messages
433.Qq Starting ${name}
434(as checked by
435.Ic check_startmsgs
436inside
437.Nm )
438and errors about usage of services that are not enabled in
439.Xr rc.conf 5 .
440This prefix also sets
441.Va rc_quiet Ns = Ns Li YES .
442.Em Please, note:
443.Va rc_quiet
444is not intended to completely mask all debug and warning messages,
445but only certain small classes of them.
430.El
431.Pp
432.Ic run_rc_command
433uses the following shell variables to control its behaviour.
434Unless otherwise stated, these are optional.
435.Bl -tag -width ".Va procname" -offset indent
436.It Va name
437The name of this script.

--- 453 unchanged lines hidden ---
446.El
447.Pp
448.Ic run_rc_command
449uses the following shell variables to control its behaviour.
450Unless otherwise stated, these are optional.
451.Bl -tag -width ".Va procname" -offset indent
452.It Va name
453The name of this script.

--- 453 unchanged lines hidden ---