Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init.d order?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Sun Feb 05, 2006 2:22 am    Post subject: init.d order? Reply with quote

Where do I set the order that I want the /etc/init.d/* scripts to run in during bootup?

Specifically, my problem is that ntp-client is started before net.eth0 and it of course fails. How to I change it so that ntp-client is started AFTER ethernet interface?

FWIW the system was "emerge sync; emerge -uD world; shutdown -r now" just yesterday so everything is fresh and up to date. It's a 21164 based DEC Alpha system.

TIA!
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sun Feb 05, 2006 2:32 am    Post subject: Reply with quote

Looking at the ntp-client init.d script, it should already start after the network is up:
Code:
depend() {
        before cron portmap
        need net
        use dns logger
}


Maybe changing RC_NET_STRICT_CHECKING to "yes" in /etc/conf.d/rc would help?

cheers

SteveB
Back to top
View user's profile Send private message
Section_8
Guru
Guru


Joined: 22 May 2004
Posts: 490
Location: Arlington, TX, US

PostPosted: Sun Feb 05, 2006 3:34 am    Post subject: Reply with quote

You might also see if RC_PARALLEL_STARTUP is yes in /etc/conf.d/rc. I have that same problem if I boot with it yes.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Feb 05, 2006 3:48 am    Post subject: Reply with quote

See "Service Dependency" at the wiki.
Back to top
View user's profile Send private message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Sun Feb 05, 2006 5:48 am    Post subject: Reply with quote

Hmm...

I changed RC_NET_STRICT_CHECKING to "yes" in /etc/conf.d/rc

I also added "after net.eth0" to the depend function of /etc/init.d/ntp-client like it says in the wiki.

RC_PARALLEL_STARTUP is no in /etc/conf.d/rc

Still not working. ntp-client tries to startup right after the lo interface is started. Next, the random number generator is started, then INIT switches to Runlevel 3, then net.eth0 is brought up.

Thanks for the quick replies - Any other ideas?
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sun Feb 05, 2006 5:56 am    Post subject: Reply with quote

Sounds like you've got the ntp-client service starting in the boot runlevel, when your net.eth0 service starts in the default runlevel.

rc-update show should confirm this.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Sun Feb 05, 2006 6:00 am    Post subject: Reply with quote

I did:

rc-update add ntp-client default
rc-update del ntp-client boot

and now everything is working as it should!!

Thanks!
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Feb 05, 2006 6:04 am    Post subject: Reply with quote

That seems to be a common mistake. Is there a document lying around that wrongly says to put ntp-client in the "boot" runlevel?
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sun Feb 05, 2006 11:20 am    Post subject: Reply with quote

PaulBredbury wrote:
Is there a document lying around that wrongly says to put ntp-client in the "boot" runlevel?

Not in any of the official Gentoo documentation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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