Red Hat Bugzilla – Bug 270341
ntpd starts before networkmanager finishes setting up.
Last modified: 2007-11-30 17:12:14 EST
Description of problem:
On boot, ntpd starts up before networkmanager finishes bringing up the network,
about 2 seconds early in fact, hence fails to find any time servers.
My workaround was to use S99ntpd in the level 5 startup and add a five second
sleep in the ntpd startup script. With these changes ntpd finds the servers, but
I'm sure there is a cleaner way to solve this problem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
ntpd should be able to use the new interface after a while (the default
interface update is 5 minutes). Have the servers specified in ntp.conf option
No, there is no "dynamic" option, ntp.conf is the standard Fedora version. The
problem was compounded by the fact that the default clocksource (tsc) drifted so
badly that ntpd never synchronized, so together with the initial failure to set
the clock, and resetting the hwclock on shutdown, I ended up with accumulated
errors of as much as 45 minutes -- rather unsettling. And no headsup message
either except grepping through the log.
For dynamic interfaces it's necessary to use the option. Default ntp.conf from
the package does that.
Hmm, I grepped dynamic in ntp.conf and didn't see it. I'll take a closer look
when I get back home as maybe it is under a different name. The install was from
the f7 live disk, is it possible that it differed from the full install?
system-config-date could overwrite the file, it doesn't support the option yet.
That must be it, because I don't see it. I wonder if ntpd will still synchronize
the system clock before starting if it finds the servers later?
The initial synchronization done by ntpdate? It's not delayed, so it will not do
any synchronization in this case.
Does ntpd work correctly when "dynamic" is used?
Yes, that seems to do the trick, ntpd came up about 30 seconds after the
network. Now let's see what happens if I fiddle with the clock... Sure enough,
the dynamic option went away.
Ok, I'm closing this as NOTABUG.