3 # $NetBSD: mountd,v 1.11 2002/01/31 01:26:06 lukem Exp $
8 # REQUIRE: NETWORKING nfsserver rpcbind quota
15 command="/usr/sbin/${name}"
16 pidfile="/var/run/${name}.pid"
17 required_files="/etc/exports"
18 start_precmd="mountd_precmd"
19 extra_commands="reload"
23 if ! checkyesno rpcbind_enable && \
24 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
26 force_depend rpcbind || return 1
29 # mountd flags will differ depending on rc.conf settings
31 if checkyesno nfs_server_enable ; then
32 if checkyesno weak_mountd_authentication; then
33 rc_flags="${mountd_flags} -n"
36 if checkyesno mountd_enable; then
37 checkyesno weak_mountd_authentication && rc_flags="-n"
41 if checkyesno zfs_enable; then
42 rc_flags="${rc_flags} /etc/exports /etc/zfs/exports"
45 rm -f /var/db/mountdtab
46 ( umask 022 ; > /var/db/mountdtab )