summaryrefslogtreecommitdiff
path: root/etc/rc.d/nfsd
blob: 8311742a3b6da2f04504942fea6e75faa0aa29e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/ksh
#
# $OpenBSD: nfsd,v 1.9 2022/08/29 19:14:25 ajacoutot 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