Browse Source

Add an "rc_bg" variable that is undefined by default and allows to start

a daemon in the background.
man page tweaks from schwarze@
discussed with an ok schwarze@ robert@
OPENBSD_5_0
ajacoutot 13 years ago
parent
commit
31b7e1a52c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/etc/rc.d/rc.subr

+ 4
- 2
src/etc/rc.d/rc.subr View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.20 2011/02/24 07:07:03 ajacoutot Exp $
# $OpenBSD: rc.subr,v 1.21 2011/03/06 16:49:48 ajacoutot Exp $
rc_err() {
echo $1
@ -7,7 +7,7 @@ rc_err() {
rc_start() {
type rc_pre >/dev/null && rc_pre
${rcexec} "${daemon} ${daemon_flags}" >/dev/null
${rcexec} "${daemon} ${daemon_flags} >/dev/null ${_bg}"
}
rc_check() {
@ -30,6 +30,8 @@ rc_cmd() {
eval _enotsup=\${rc_${1}}
[ X"${_enotsup}" != X"NO" ] || rc_err "$0: $1 is not supported"
[ X"${rc_bg}" = X"YES" ] && local _bg="&"
case "$1" in
check)
rc_check


Loading…
Cancel
Save