Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc-update and priority
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pshinpaugh
n00b
n00b


Joined: 22 Apr 2004
Posts: 4
Location: Vriginia

PostPosted: Thu Apr 22, 2004 3:43 pm    Post subject: rc-update and priority Reply with quote

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
View user's profile Send private message
FreeFly42
l33t
l33t


Joined: 03 Nov 2003
Posts: 848
Location: Houston, TX

PostPosted: Thu Apr 22, 2004 6:40 pm    Post subject: Reply with quote

Just edit the depend() in the init scripts.
411
_________________
Kent

Planes are dangerous, get out of 'em quick
Back to top
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 993
Location: Quebec, Canada

PostPosted: Thu Apr 22, 2004 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Apr 22, 2004 8:33 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
FreeFly42
l33t
l33t


Joined: 03 Nov 2003
Posts: 848
Location: Houston, TX

PostPosted: Fri Apr 23, 2004 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
pshinpaugh
n00b
n00b


Joined: 22 Apr 2004
Posts: 4
Location: Vriginia

PostPosted: Fri Apr 23, 2004 2:56 pm    Post subject: Reply with quote

Thanks for the help everybody. I will look into the solutions you provided. Editing the depend() function in the init scripts sounds good.

Thanks
:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum