3 # $NetBSD: mountd,v 1.11 2002/01/31 01:26:06 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/mountd,v 1.9 2002/10/12 10:31:31 schweikh Exp $
5 # $DragonFly: src/etc/rc.d/mountd,v 1.2 2003/08/10 10:11:13 rob Exp $
9 # REQUIRE: NETWORKING mountall beforemountlkm nfsserver rpcbind quota
10 # KEYWORD: DragonFly FreeBSD NetBSD
16 command="/sbin/${name}"
17 required_files="/etc/exports"
18 start_precmd="mountd_precmd"
19 extra_commands="reload"
25 if ! checkyesno rpcbind_enable && \
26 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
28 force_depend rpcbind || return 1
30 # mountd flags will differ depending on rc.conf settings
32 case ${nfs_server_enable} in
34 if checkyesno weak_mountd_authentication; then
35 mountd_flags="${mountd_flags} -n"
39 if checkyesno mountd_enable; then
40 checkyesno weak_mountd_authentication && mountd_flags="-n"
46 if ! checkyesno rpcbind_enable && \
47 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
49 force_depend rpcbind || return 1
52 # mountd flags will differ depending on rc.conf settings
54 case ${nfs_server_enable} in
56 if checkyesno weak_mountd_authentication; then
57 mountd_flags="${mountd_flags} -n"
61 if checkyesno mountd_enable; then
62 checkyesno weak_mountd_authentication && mountd_flags="-n"
67 rm -f /var/db/mountdtab
68 ( umask 022 ; > /var/db/mountdtab )