diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2016-04-27 17:29:51 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2016-04-27 17:29:51 +0000 |
commit | f9ecfa9977beca6053396992ccd284edf3c92333 (patch) | |
tree | 7562211b9dd4a9d1066a74ba9e0b3e5032dd56c5 /etc | |
parent | 02bda67cd2365f1a8f2bfd582328ceddf34462ac (diff) |
Revert the revert and match on the daemon_user again.
We'll see if something else breaks but it's the right thing to do.
discussed with robert@
Diffstat (limited to 'etc')
-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 ed6caffd9ae..412406c5b51 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.111 2016/04/27 12:58:12 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.112 2016/04/27 17:29:50 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014-2016 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -155,15 +155,15 @@ rc_start() { } rc_check() { - pgrep -T "${daemon_rtable}" -q -xf "${pexp}" + pgrep -T "${daemon_rtable}" -U "${daemon_user}" -q -xf "${pexp}" } rc_reload() { - pkill -T "${daemon_rtable}" -HUP -xf "${pexp}" + pkill -T "${daemon_rtable}" -U "${daemon_user}" -HUP -xf "${pexp}" } rc_stop() { - pkill -T "${daemon_rtable}" -xf "${pexp}" + pkill -T "${daemon_rtable}" -U "${daemon_user}" -xf "${pexp}" } rc_cmd() { |