When I try to specify the timeout option for a specific mount map, it will be ignored by the script /etc/init.d/autofs. Reproducible: Always Steps to Reproduce: I specify the timeout for the autmount daemon in the file /etc/autofs/auto.master using a line like this: /mount/nfs/automount /etc/autofs/auto.nfs --timeout=1800 and execute /etc/init.d/autofs start Actual Results: the timeout will be ignored, although the file /tmp/debug look like this: STARTUPOPTIONS --timeout 1800 DIR /mount/nfs/automount MAPTYPE file MAP /etc/autofs/auto.nfs MAPOPTIONS LOCALOPTIONS I'm using autofs-3.1.7-r5 I think line 126 of the script /etc/init.d/autofs has to be echo "$DAEMON $startupoptions $dir $maptype $map $mapoptions $localoptions" | sed -e 's/ / /g' -e 's/ / /g'
This autofs script is horrible, will fix it in the next couple of hours and commit to portage Stefan
chickened out, but I did the following: 26 Jul 2003; Stefan Jones <cretin@gentoo.org> files/autofs.rc8 files/autofs.confd: Fixed the --timeout options, can be specified in daemonoptions in autofs.confd or via the last option in the misc.master file.
Thanks Cretin, if you want to clean up the mess please go ahead, I'd greatly appreciate it.