summaryrefslogtreecommitdiff
path: root/etc/rc.d/nfsd
blob: 2020f1593ba59557f82e6eb63b56f223b7132887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/ksh
#
# $OpenBSD: nfsd,v 1.8 2018/01/11 21:09:26 rpe 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