summaryrefslogtreecommitdiff
path: root/share/man/man8
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-05-27 19:55:49 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-05-27 19:55:49 +0000
commitc144bf32706dda417076da6257524a52385efda9 (patch)
tree46341e2a0d2777a32b2a6e63453a349bcc240e70 /share/man/man8
parentfe30c058ab83dfb07358dfaf9d492788897a6b0c (diff)
Ok turns out we still want to keep the rc_bg variable around but we need
to know which daemon cannot background themselves (actually we want to know the opposite, but there are much more). However, it's only needed in _rc_wait and rc.subr still does its magic without the need to add `&'.
Diffstat (limited to 'share/man/man8')
-rw-r--r--share/man/man8/rc.subr.817
1 files changed, 14 insertions, 3 deletions
diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8
index 239aadaed9c..b5ae8b3b118 100644
--- a/share/man/man8/rc.subr.8
+++ b/share/man/man8/rc.subr.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rc.subr.8,v 1.33 2017/05/27 13:51:52 ajacoutot Exp $
+.\" $OpenBSD: rc.subr.8,v 1.34 2017/05/27 19:55:48 ajacoutot Exp $
.\"
.\" Copyright (c) 2011 Robert Nagy, Antoine Jacoutot, Ingo Schwarze
.\" All rights reserved.
@@ -79,7 +79,11 @@ Override the
.Va pexp
variable or any of the
.Ic rc_*
-functions and variables, if needed.
+functions and set the
+.Va rc_bg
+or
+.Va rc_reload
+variables, if needed.
.It
Define an
.Ic rc_pre
@@ -187,7 +191,7 @@ variable.
Start the daemon.
Defaults to:
.Bd -literal -offset indent
-${rcexec} "${daemon} ${daemon_flags} ${_bg}"
+${rcexec} "${daemon} ${daemon_flags}"
.Ed
.It Ic rc_stop
Stop the daemon.
@@ -279,6 +283,13 @@ script has to redefine this variable
.Em after
sourcing
.Nm .
+.It Va rc_bg
+Can be set to
+.Cm YES
+in an
+.Nm rc.d
+script to force starting the daemon in background when using the default
+.Ic rc_start .
.It Va rc_reload
Can be set to
.Dq NO