View previous topic :: View next topic |
Author |
Message |
pshinpaugh n00b
Joined: 22 Apr 2004 Posts: 4 Location: Vriginia
|
Posted: Thu Apr 22, 2004 3:43 pm Post subject: rc-update and priority |
|
|
I have an LDAPv3 server which I am using to authenticate users as well as automount directories. The problem I am having is that autofs starts before slapd when the machine is booted and is therefore unable to mount the correct directories. Restarting autofs corrects the issue. Is there a way to specifiy that a particular service be started before another? I can write a simple hack, but I prefer not to since my hack could/would be overwritten during emerge of fresh ebuilds.
*EDIT*
I have looked farther into /var/lib/init.d/deptree but it gets overwritten at boot time. I have also looked through various scripts but have yet to find how gentoo determines the dependencies or ordering of services. Any help would be appreciated.
Thanks |
|
Back to top |
|
|
FreeFly42 l33t
Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Thu Apr 22, 2004 6:40 pm Post subject: |
|
|
Just edit the depend() in the init scripts.
411 _________________ Kent
Planes are dangerous, get out of 'em quick |
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Thu Apr 22, 2004 7:10 pm Post subject: |
|
|
another solution for being very specific to force things to start in a certain order is to use the /etc/conf.d/local.start and local.stop scripts. This way you can force things to start in a specific order _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Apr 22, 2004 8:33 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
FreeFly42 l33t
Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Fri Apr 23, 2004 12:17 am Post subject: |
|
|
Specifically in the depend() of /etc/init.d/autofs to include something like use=slapd so it will start after slapd. Or add after=autofs to the depend() of slapd. Or both.
It won't be overwritten by subsequent emerges unless you tell it to. Use etc-update and pay attention to what you're doing and you won't have a problem.
This would be much better than hard-wiring all the script orders since you will have to update such a script frequently for all the dependency changes (I don't think you want to be calculating that yourself). _________________ Kent
Planes are dangerous, get out of 'em quick |
|
Back to top |
|
|
pshinpaugh n00b
Joined: 22 Apr 2004 Posts: 4 Location: Vriginia
|
Posted: Fri Apr 23, 2004 2:56 pm Post subject: |
|
|
Thanks for the help everybody. I will look into the solutions you provided. Editing the depend() function in the init scripts sounds good.
Thanks
|
|
Back to top |
|
|
|