From 8fe516386c52f6669c10ab308d3adb2e8f43833a Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Fri, 26 Oct 2007 09:38:54 +0000 Subject: [PATCH] o Add a note that checkyesno takes a variable by its name, not value. o Improve mdoc(7) markup and style of the paragraph on stop_boot. --- share/man/man8/rc.subr.8 | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index 682acd92a3e7..6308eb6b79c9 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -218,6 +218,11 @@ Otherwise, warn that .Ar var is not set correctly. The values are case insensitive. +.Sy Note : +.Ar var +should be a variable name, not its value; +.Ic checkyesno +will expand the variable by itself. .It Ic check_pidfile Ar pidfile procname Op Ar interpreter Parses the first word of the first line of .Ar pidfile @@ -836,20 +841,17 @@ into the current shell. .It Ic stop_boot Op Ar always Prevent booting to multiuser mode. If the -.Sy autoboot -variable is -.Sq yes , +.Va autoboot +variable is set to +.Ql yes , or -.Ar always -is -.Sq true , -then a -.Sy SIGTERM +.Ic checkyesno Ar always +indicates a truth value, then a +.Dv SIGTERM signal is sent to the parent -process (which is assumed to be -.Xr rc 8 ). -Otherwise, the shell exits with status -.Li 1 . +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