From: Koos Pol
Date: 09 Nov 2000 08:27:48 CET
Message-Id: <20001109072751.4AA978287@bitbucket.extern.uniface.nl>
Subject: Re: [SLE] xntp
On Wed, 8 Nov 2000 22:54:08 -0800, Michael Perry wrote:
| I have a debian box which talks ntpd to a timeserver at clock.via.net. I
| then use ntpdate to talk with my box which talks with the timeserver. I
| have a cronjob which runs every 2 hours which synchs the time to my box.
| Works for me quite well.
|
| My cron job looks like:
|
| * */2 /usr/sbin/ntpdate -s 192.168.0.1
|
<p>I am not mistaken, this approach is the wrong way around. ntpdate is used to
make an initial sync with a timeserver and xntpd is being run afterwards for
the continuous syncing. On other words, one needs to run ntpdate only once
(at machine bootime). If you run xntpd hereafter at boottime then xntpd will
start itself as a daemon, and will continuously try to sync itself with the
timeserver. The ntp protocol will figure out for itself how often it is
necessary to sync.
Koos Pol
----------------------------------------------------------------------
S.C. Pol T: +31 20 3116122
Systems Administrator F: +31 20 3116200
Compuware Europe B.V. E: koos_pol@nl.compuware.com
Amsterdam PGP public key available