autofs needs to have nfs or some of the nfs dependencies started to work properly. When I start nfs (/etc/init.d/nfs) it will start its dependencies. This does not happen when I start /etc/init.d/autofs. I suggest that autofs shall work the same way, i.e. make sure that its dependencies are started. On the other hand /etc/init.d/net.eth0 will start and stop autofs when restarted. Reproducible: Always Steps to Reproduce: 1. Setup a working autofs. 2. /etc/init.d/autofs stop 3. /etc/init.d/nfs stop 4. /etc/init.d/autofs start 5. Autofs no longer works. Actual Results: Autofs does not work properly. In my case the directory entries are shown with errors when listing the auto-root. Expected Results: When the autofs init-script is started it shall ensure that services it needs are started as well.
Do you have nfs at default runlevel? Please, show output of rc-update.
When I found this issue I did not have NFS at the default runlevel, I have now though. My point is that some init-scripts starts its dependencies while autofs does not. My suggestion is that autofs shall do so as well. BR ERIK
After taken a look in the script I found the following in the depend() function: need localmount use ypbind nfs slapd portmap net On my systems (all quite similar) I cannot use autofs unless nfs is started. Given the documentation for need and use in initscripts I sugest the following change: need localmount nfs use ypbind slapd portmap net (nfs is moved to need) Mind that this is what I can figure out in my little corer of the world. I do not know if this is a true and always existing dependency on all systems. BR Erik
Peter, IMO this is a dupe of bug 163210. If you agree, please mark as such or shortly explain why not and I'll try to come up with a solution. Dustin
Well, As bug 163210 was solved back in May and I still have problem with this I think it is still valid in autofs 5.0.6-r1. My specific point is that the autofs init-script make proper use of the "use" and "need" statements. As I understand it nfs shall be declared as a "need" if it is needed for autofs to work properly, and to me this appears to be the situation. It is my belief that a ebuild message is not a proper alternative for a proper init-script, unless there are some to me unknown consequences. BR Erik
(In reply to comment #5) > Well, > > As bug 163210 was solved back in May and I still have problem with this I think > it is still valid in autofs 5.0.6-r1. > > My specific point is that the autofs init-script make proper use of the "use" > and "need" statements. As I understand it nfs shall be declared as a "need" if > it is needed for autofs to work properly, and to me this appears to be the > situation. > > It is my belief that a ebuild message is not a proper alternative for a proper > init-script, unless there are some to me unknown consequences. > > BR > Erik The thing is that autofs works without nfs as well and we cannot force nfs to all users even though they don't want to use that. The init script does take care that nfs is started before autofs if it is added to the runlevel. A user who wants to set-up autofs + nfs needs to take care that nfs is added to the runlevel and the elog message reminds to do so.
Thanks. That is a reason I fully understand and accept. Then this suggestion is probably not valid any more and OK to close.
Ok, closing as dupe. Thank you guys. *** This bug has been marked as a duplicate of bug 163210 ***