Summary: | net-fs/autofs : current init script does not start dependencies | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sod off! I am no loger here! <paddlaren> |
Component: | Current packages | Assignee: | Peter Volkov (RETIRED) <pva> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | DuPol |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sod off! I am no loger here!
2011-08-28 06:23:19 UTC
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 *** |