3 # $NetBSD: nfsd,v 1.4 2001/06/16 06:13:10 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/nfsd,v 1.9 2003/01/24 00:37:52 mtm Exp $
8 # REQUIRE: nfsserver rpcbind mountd
14 rcvar=`set_rcvar nfs_server`
15 command="/sbin/${name}"
16 command_args="${nfs_server_flags}"
17 start_precmd="nfsd_precmd"
22 if ! ${SYSCTL} -q vfs.nfs >/dev/null; then
23 force_depend nfsserver || return 1
26 if ! checkyesno rpcbind_enable && \
27 ! /etc/rc.d/rpcbind forcestatus >/dev/null 2>&1
29 force_depend rpcbind || return 1
32 if ! checkyesno mountd_enable && \
33 ! /etc/rc.d/mountd forcestatus >/dev/null 2>&1
35 force_depend mountd || return 1
38 if checkyesno nfs_reserved_port_only; then
39 echo 'NFS on reserved port only=YES'
40 ${SYSCTL_W} vfs.nfs.nfs_privport=1 >/dev/null