7 # REQUIRE: NETWORKING rpcbind quota
8 # KEYWORD: nojail shutdown
14 command="/usr/sbin/${name}"
15 pidfile="/var/run/${name}.pid"
16 required_files="/etc/exports"
17 start_precmd="mountd_precmd"
18 extra_commands="reload"
22 if ! checkyesno rpcbind_enable && \
23 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
25 force_depend rpcbind || return 1
28 # mountd flags will differ depending on rc.conf settings
30 if checkyesno nfs_server_enable ; then
31 if checkyesno weak_mountd_authentication; then
32 rc_flags="${mountd_flags} -n"
35 if checkyesno mountd_enable; then
36 checkyesno weak_mountd_authentication && rc_flags="-n"
40 # If oldnfs_server_enable is yes, force use of the old NFS server
42 if checkyesno oldnfs_server_enable; then
43 rc_flags="-o ${rc_flags}"
46 if checkyesno zfs_enable; then
47 rc_flags="${rc_flags} /etc/exports /etc/zfs/exports"
50 rm -f /var/db/mountdtab
51 ( umask 022 ; > /var/db/mountdtab )