summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/rc.d/rc.subr8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index 9eef525cee1..9ccc3b8aa56 100644
--- a/etc/rc.d/rc.subr
+++ b/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 <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -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() {