Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70827 - autofs init scripts need more info when failure occurs
Summary: autofs init scripts need more info when failure occurs
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 11:04 UTC by Quentin Arce
Modified: 2004-12-08 23:08 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 Quentin Arce 2004-11-11 11:04:45 UTC
when autofs is started on my system the init scripts report no problems.  When I check autofs is not running.  An /etc/init.d/autofs reload tries to kill a number of pids that do not exist.  After looking at this problem for about 15 min I found that I had compiled autofs4 as a module and I had not insmoded it.  There should be some sort of check if autofs is supported by the kernel and they insmod the module if it is a module and not compiled in.

Reproducible: Always
Steps to Reproduce:
1.Build kernel with autofs4 as a module
2.Install autofs
3.start autofs
4.reload autofs
5.find real problem by checking /var/log/daemons.log



Expected Results:  
working autofs or at lease clear error that it did not start and that you 
should check the daemon.log file  

I think that covers it.  Give it a try
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-08 21:25:24 UTC
unfortunetly that's really hard at autofs doesn't give any indication that an error has occured in any way that's quick to pick up.
it always exits with a 0 return value, even when there is stuff wrong, and never even sends output on stdout.

i'll put a chunk of code into the latest init script that check for the autofs module for you, and try to load it if needed, and fail otherwise.