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 $
14 rcvar
=`set_rcvar nfs_server`
15 command="/sbin/${name}"
17 command_args
="${nfs_server_flags}"
18 start_precmd
="nfsd_precmd"
23 if ! ${SYSCTL} -q vfs.nfs
>/dev
/null
; then
24 force_depend nfsserver ||
return 1
27 if ! checkyesno rpcbind_enable
&& \
28 ! /etc
/rc.d
/rpcbind forcestatus
1>/dev
/null
2>&1
30 force_depend rpcbind ||
return 1
33 if ! checkyesno mountd_enable
&& \
34 ! /etc
/rc.d
/mountd forcestatus
1>/dev
/null
2>&1
36 force_depend mountd ||
return 1
39 if checkyesno nfs_reserved_port_only
; then
40 echo 'NFS on reserved port only=YES'
41 ${SYSCTL_W} vfs.nfs.nfs_privport
=1 >/dev
/null