i want to use autofs with my cdrom's, here my config files: auto.master: ================= /mnt/cdroms /etc/autofs/auto.cdroms --timeout=3 ================= auto.cdroms: ================= brenner -fstype=iso9660,ro :/dev/sr0 dvd -fstype=iso9660,ro :/dev/cdroms/cdrom0 ================= but the timeout option has no effect, it is always is 5 minutes. i have tried to run automount manually: automount -t 3 /mnt/cdroms file /etc/autofs/auto.cdrom and it works. i think it's a bug in the /etc/init.d/autofs
At the least the line: echo "$DAEMON $dir $maptype $map $mapoptions $localoptions" | sed -e 's/ / /g' -e 's/ / /g' Is missing $startupoptions. This works for me: echo "$DAEMON $startupoptions $dir $maptype $map $mapoptions $localoptions" | sed -e 's/ / /g' -e 's/ / /g' I would also recommend commenting out the echo to /tmp/debug lines.
Thanks :)