Re: [chrony-dev] Bug -- interaction between ntpdate and chronyd at bootup -- will never sync up

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Tue, 5 Feb 2013, ray vantassle wrote:

Weird. Maybe you should have chrony come up before then, which would block
the port for ntpdate.

I just tested that.  Ntpdate works just fine while chrony is running.
There is no "port to block".  Ntpdate doesn't listen on any port, it
only establishes an outbound connection to a remote server (on port
123).

Ntpdate manual says that it will exit if ntpd is running.  I don't
know how it knows when ntpd is running, but it hardly matters, because
(presuming that ntpd is started up at the same place as chrony is)
when ntpdate starts, ntpd is *not* running.  So it would have the same
issue, that ntpdate slips in and updates the time underneath it.
Hmmm, now I'm gonna have to test that.

Whether using ntpdate or rdate, it does what you want --- quickly get
the date/time as soon as possible after startup.  Remember, no RTC so
it has no idea of what the time is when it first boots up.  The
problem is that chrony chokes.

Actually, the distro's ntpdate control files do just what you'd want
them to do ---- when the network becomes available, go grab the date
from a time server.

sure, and chrony could do that as well.

But there seemed to be indications that the chrony drift file is off. Maybe
you should erase that, and then start up chrony.




--
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/

--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/