summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-01-01 15:48:12 +0000
committertrasz <trasz@FreeBSD.org>2015-01-01 15:48:12 +0000
commitf0fc25ae4bf78ea39a5f50e3a429eb14ece55fc7 (patch)
tree2d80b52a926426b1dfc9df97e1e6d014e1f449c9 /etc
parent8a977bdac721759070111c00c9cab5f72eb5d831 (diff)
downloadFreeBSD-src-f0fc25ae4bf78ea39a5f50e3a429eb14ece55fc7.zip
FreeBSD-src-f0fc25ae4bf78ea39a5f50e3a429eb14ece55fc7.tar.gz
MFC r274965:
Make it possible to specify flags for autofs daemons in rc.conf. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf5
-rw-r--r--etc/rc.d/automount2
2 files changed, 5 insertions, 2 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index c634c26..e9638f5 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -326,7 +326,10 @@ amd_enable="NO" # Run amd service with $amd_flags (or NO).
amd_program="/usr/sbin/amd" # path to amd, if you want a different one.
amd_flags="-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map"
amd_map_program="NO" # Can be set to "ypcat -k amd.master"
-autofs_enable="NO" # Run automountd(8)
+autofs_enable="NO" # Run autofs daemons.
+automount_flags="" # Flags to automount(8) (if autofs enabled).
+automountd_flags="" # Flags to automountd(8) (if autofs enabled).
+autounmountd_flags="" # Flags to autounmountd(8) (if autofs enabled).
nfs_client_enable="NO" # This host is an NFS client (or NO).
nfs_access_cache="60" # Client cache timeout in seconds
nfs_server_enable="NO" # This host is an NFS server (or NO).
diff --git a/etc/rc.d/automount b/etc/rc.d/automount
index 63bda42..c394694 100644
--- a/etc/rc.d/automount
+++ b/etc/rc.d/automount
@@ -18,7 +18,7 @@ required_modules="autofs"
automount_start()
{
- /usr/sbin/automount
+ /usr/sbin/automount ${automount_flags}
}
automount_stop()
OpenPOWER on IntegriCloud