Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24724 - init.d/autofs ignores timeout option
Summary: init.d/autofs ignores timeout option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 04:03 UTC by Carsten Krebs
Modified: 2003-07-27 08:18 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 Carsten Krebs 2003-07-18 04:03:39 UTC
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'
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-07-26 03:08:17 UTC
This autofs script is horrible, will fix it in the next couple of hours and commit to portage

Stefan
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-07-26 03:48:00 UTC
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.
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2003-07-27 08:18:02 UTC
Thanks Cretin, if you want to clean up the mess please go ahead, I'd greatly appreciate it.