Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13659 - autofs timeout does not work
Summary: autofs timeout does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-10 13:44 UTC by Alexander Keusch
Modified: 2003-01-12 22:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Keusch 2003-01-10 13:44:09 UTC
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 Arthur Britto 2003-01-10 16:18:13 UTC
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 Brad Cowan (RETIRED) gentoo-dev 2003-01-12 22:28:41 UTC
Thanks :)