summaryrefslogtreecommitdiff
path: root/etc/rc.d/nfsd
blob: 286e61b126c20dc331e8d9cc034c2a6855642858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# $OpenBSD: nfsd,v 1.6 2014/08/22 08:10:38 jsg Exp $

daemon="/sbin/nfsd"
daemon_flags="-tun 4"

. /etc/rc.d/rc.subr

pexp="(${daemon}( |$)|nfsd: (master|server)$)"

rc_reload=NO

rc_pre() {
	[ -s /etc/exports ] && grep -qv '^#' /etc/exports
}

rc_cmd $1