View previous topic :: View next topic |
Author |
Message |
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Sun Feb 05, 2006 2:22 am Post subject: init.d order? |
|
|
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 |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sun Feb 05, 2006 2:32 am Post subject: |
|
|
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 |
|
|
Section_8 l33t
Joined: 22 May 2004 Posts: 627
|
Posted: Sun Feb 05, 2006 3:34 am Post subject: |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Feb 05, 2006 3:48 am Post subject: |
|
|
See "Service Dependency" at the wiki. |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Sun Feb 05, 2006 5:48 am Post subject: |
|
|
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 |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Sun Feb 05, 2006 5:56 am Post subject: |
|
|
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 |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Sun Feb 05, 2006 6:00 am Post subject: |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Feb 05, 2006 6:04 am Post subject: |
|
|
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 |
|
|
96140 Retired Dev
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Sun Feb 05, 2006 11:20 am Post subject: |
|
|
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 |
|
|
|