Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [opensuse] Possible boot ordering problem between ntp and dhcp
  • From: Henne Vogelsang <hvogel@xxxxxxx>
  • Date: Fri, 4 Nov 2005 11:57:44 +0100
  • Message-id: <20051104105744.GC8382@xxxxxxx>
Hi,

On Thursday, November 03, 2005 at 15:51:42, Bruce A. Mallett wrote:

> I think I'm seeing an ordering problem in that ntp won't set the system
> clock on boot because:
> 1) Yast stores the time server's name and not its IP address in
> /etc/ntp.conf
> 2) My system gets its IP via dhcpd
> 3) ntp fails to resolve the IP address via DNS for the ntp server
> named in /etc/ntp.conf because ...
> 4) dhcpd does not modify /etc/resolv.conf until *after*
> /etc/init.d/ntp is run
>
> FWIW: I've eth0 controlled by ifplugd.

Thats the "problem" (its not really a problem its your misunderstanding
of ifplugd ;). The interface is up as soon as ifplugd is started. If you
want to have ntp started/restarted after the interface is connected you
need to do so in /etc/sysconfig/network/ifservices-<device description>

Like

$ cd /etc/sysconfig/network
$ ls ifcfg-eth-id-00:0c:6e:4d:59:39
ifcfg-eth-id-00:0c:6e:4d:59:39
$ mkdir ifservices-eth-id-00:0c:6e:4d:59:39
$ cd ifservices-eth-id-00:0c:6e:4d:59:39
$ ln -s ../../init.d/ntp S10ntp
$ ln -s ../../init.d/ntp K90ntp

Henne

--
Henne Vogelsang, Subsystems
"Rules change. The Game remains the same."
- Omar (The Wire)

< Previous Next >
Follow Ups
References