summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2011-08-02 11:50:39 +0000
committerrobert <robert@openbsd.org>2011-08-02 11:50:39 +0000
commit65c8393d68d01e7f463807d51925433ef0864bb0 (patch)
tree86b91e1db9db69b2f37ad0405cd4458d3125913f
parentAdd softraid (and option CRYPTO as pointed out by todd). (diff)
downloadwireguard-openbsd-65c8393d68d01e7f463807d51925433ef0864bb0.tar.xz
wireguard-openbsd-65c8393d68d01e7f463807d51925433ef0864bb0.zip
catch all the three different process names in pexp
-rw-r--r--etc/rc.d/nfsd8
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/rc.d/nfsd b/etc/rc.d/nfsd
index 7cebb40862d..86aa27cf45a 100644
--- a/etc/rc.d/nfsd
+++ b/etc/rc.d/nfsd
@@ -1,11 +1,13 @@
#!/bin/sh
#
-# $OpenBSD: nfsd,v 1.1 2011/07/08 00:54:04 ajacoutot Exp $
+# $OpenBSD: nfsd,v 1.2 2011/08/02 11:50:39 robert Exp $
daemon="/sbin/nfsd"
. /etc/rc.d/rc.subr
+pexp="(${daemon}*|nfsd: (master|server)$)"
+
rc_reload=NO
rc_pre() {
@@ -14,8 +16,4 @@ rc_pre() {
echo -n > /var/db/mountdtab
}
-rc_post() {
- pkill -f "^nfsd: server$"
-}
-
rc_cmd $1