diff options
author | 2011-03-09 18:50:46 +0000 | |
---|---|---|
committer | 2011-03-09 18:50:46 +0000 | |
commit | bf24ea55210b8a7a2174a8c5ee05bdb28fd2fb94 (patch) | |
tree | 99d58461a9f911fd5be8a8814ada0dc02e3bb311 | |
parent | Implement UDP mode for tcpbench and switch tcpbench to use libevent. (diff) | |
download | wireguard-openbsd-bf24ea55210b8a7a2174a8c5ee05bdb28fd2fb94.tar.xz wireguard-openbsd-bf24ea55210b8a7a2174a8c5ee05bdb28fd2fb94.zip |
Move the redirections into the rc_cmd itself instead of rc_start and
rc_stop so scripts don't need to set it.
ok sthen@ (on a much bigger diff) robert@
-rw-r--r-- | etc/rc.d/rc.subr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index f9d7414af39..e179fa9afca 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.22 2011/03/09 09:10:44 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.23 2011/03/09 18:50:46 ajacoutot Exp $ rc_err() { echo $1 @@ -6,7 +6,7 @@ rc_err() { } rc_start() { - ${rcexec} "${daemon} ${daemon_flags} >/dev/null ${_bg}" + ${rcexec} "${daemon} ${daemon_flags} ${_bg}" } rc_check() { @@ -37,11 +37,11 @@ rc_cmd() { start) if ! rc_check; then type rc_pre >/dev/null && rc_pre - rc_start + rc_start >/dev/null fi ;; stop) - rc_stop + rc_stop >/dev/null i=0 while [ $i -lt 5 ]; do rc_check || break |