aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/mountd
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/mountd')
-rwxr-xr-xlibexec/rc/rc.d/mountd7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/rc/rc.d/mountd b/libexec/rc/rc.d/mountd
index 0c6e75f07d64..39b16d604321 100755
--- a/libexec/rc/rc.d/mountd
+++ b/libexec/rc/rc.d/mountd
@@ -1,11 +1,10 @@
#!/bin/sh
#
-# $FreeBSD$
#
# PROVIDE: mountd
# REQUIRE: NETWORKING rpcbind quota mountlate
-# KEYWORD: nojail shutdown
+# KEYWORD: nojailvnet shutdown
. /etc/rc.subr
@@ -34,7 +33,9 @@ mountd_precmd()
rc_flags="${rc_flags} -R"
else
force_depend rpcbind || return 1
- if ! checkyesno nfsv4_server_enable; then
+ if checkyesno nfsv4_server_enable; then
+ sysctl vfs.nfsd.server_max_nfsvers=4 > /dev/null
+ else
sysctl vfs.nfsd.server_max_nfsvers=3 > /dev/null
fi
fi