Bug 13659 - autofs timeout does not work
Bug#: 13659 Product:  Gentoo Linux Version: 1.4_rc2 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bcowan@gentoo.org Reported By: A.Keusch@gmx.at
Component: Ebuilds
URL: 
Summary: autofs timeout does not work
Keywords:  
Status Whiteboard: 
Opened: 2003-01-10 13:44 0000
Description:   Opened: 2003-01-10 13:44 0000
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

------- Comment #1 From Arthur Britto 2003-01-10 16:18:13 0000 -------
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.

------- Comment #2 From Brad Cowan (RETIRED) 2003-01-12 22:28:41 0000 -------
Thanks :)