From 16f8f5639de0fc77bffe89f919540310e76001f6 Mon Sep 17 00:00:00 2001 From: robert <> Date: Tue, 2 Aug 2011 11:50:39 +0000 Subject: [PATCH] catch all the three different process names in pexp --- src/etc/rc.d/nfsd | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/etc/rc.d/nfsd b/src/etc/rc.d/nfsd index 7cebb408..86aa27cf 100644 --- a/src/etc/rc.d/nfsd +++ b/src/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