Browse Source

catch all the three different process names in pexp

OPENBSD_5_0
robert 13 years ago
parent
commit
16f8f5639d
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      src/etc/rc.d/nfsd

+ 3
- 5
src/etc/rc.d/nfsd View File

@ -1,11 +1,13 @@
#!/bin/sh #!/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" daemon="/sbin/nfsd"
. /etc/rc.d/rc.subr . /etc/rc.d/rc.subr
pexp="(${daemon}*|nfsd: (master|server)$)"
rc_reload=NO rc_reload=NO
rc_pre() { rc_pre() {
@ -14,8 +16,4 @@ rc_pre() {
echo -n > /var/db/mountdtab echo -n > /var/db/mountdtab
} }
rc_post() {
pkill -f "^nfsd: server$"
}
rc_cmd $1 rc_cmd $1

Loading…
Cancel
Save