diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 9eef525c..9ccc3b8a 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.98 2015/07/15 12:26:25 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.99 2015/07/15 13:48:16 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -157,15 +157,15 @@ rc_start() { } rc_check() { - pgrep -q -f "^${pexp}" + pgrep -q -xf "${pexp}" } rc_reload() { - pkill -HUP -f "^${pexp}" + pkill -HUP -xf "${pexp}" } rc_stop() { - pkill -f "^${pexp}" + pkill -xf "${pexp}" } rc_cmd() {