Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to control the order of service start-up?
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
NotExcessive
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 235

PostPosted: Wed Sep 07, 2005 4:27 pm    Post subject: Is it possible to control the order of service start-up? Reply with quote

At boot-up, I've got ntp-client starting up way before adsl-start, so it barfs at not being able to resolve the host name of the time server (naturally) and after I log in and do an rc-status it shows me that /etc/init.d/ntp-client is [OFF].

Is there any way I can arrange the firing order so that ntp-client is the last thing that launches?
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Sep 07, 2005 4:42 pm    Post subject: Reply with quote

You could try to add
Code:
need adsl-start
in the depend() block in /etc/init.d/ntp-client.
The order the initscripts are executed is determined by the various "need", "use", and "after" flags. I remeber reading some documentation about that, but I can't remember where. :(
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Oct 30, 2005 7:30 pm    Post subject: Reply with quote

Here's the initscript docs, and an ntp example.
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