Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [opensuse] xntpd and ntpdate
  • From: meister@xxxxxxxxxx
  • Date: Tue, 1 Nov 2005 13:07:37 +0100
  • Message-id: <200511011307.37625.meister@xxxxxxxxxx>
Am Dienstag 01 November 2005 11:09 schrieb Michal Hlavac
<michal.hlavac@xxxxxxxxxx>:
> I have running xntpd daemon. But clocks are not synchronized with ntp
> server.
> When xntpd is running I cannot run ntpdate:
> 1 Nov 11:05:36 ntpdate[12922]: the NTP socket is in use, exiting

Hi Michal,

just wait 2 or 3 minutes and retry. The socket should be free than.

> How can I setup every hour synchronization from another ntp server???

No ntp daemon needed:
# crontab -l >$$;echo "* 42 * * * /usr/sbin/ntpdate -su
ntp1.ptb.de">>$$;crontab $$;rm $$

With ntp daemon:
# rcntpd stop
# vi /etc/ntp.conf
there should be a line starting with 'server', e.g.
server ntp1.ptb.de
# rcntpd start
# ntpq -p
this lists your peers

-- mdc

< Previous Next >
References