Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3931 - autofs init script pidfile error
Summary: autofs init script pidfile error
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
Depends on:
Reported: 2002-06-20 09:39 UTC by Gavin Panella
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Panella 2002-06-20 09:39:20 UTC
In start() it derives a pid file name with this line:

    pidfile=/var/run/autofs`echo $mnt | sed 's/\//./'`.pid if $mnt is something like /foobar/fred it will later try to create
/var/run/autofs.foobar/ (which fails), rather than

A solution:

    pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid

or perhaps...

Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-06-20 16:26:27 UTC

  Can you double check the autofs file found in the autofs/files directory... It
appears to already have a /g at the end of the string.
Comment 2 Gavin Panella 2002-06-21 05:38:20 UTC
It's not there... but I've done some more digging...

The 3.1.7-r3 ebuild is using 'autofs.rc6' rather than 'autofs' in which this bug
is fixed in rev 1.2.  Looks like only the ebuild needs a tweak.

Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2002-06-21 18:11:43 UTC
Changed autofs.rc6:  Added a \g to the regex.