You are not logged in.

#1 2010-03-28 09:58:04

fettouhi
Member
Registered: 2007-05-07
Posts: 775

Using ntpd and ntpdate

I've decided to setup my system using ntpd. So I used the wiki to do so

http://wiki.archlinux.org/index.php/Ntpd#ntpd

and I've modified ntp.conf and so forth and added ntpd and ntpdate to my daemons. Everything seems to be running fine but at boot I see that the ntp-client writes fail at startup and I can't figure out why. I've looked in daemon.log but I can't find anything wrong. If I issue the command ntpdate I get

[af@andre ~]$ sudo /usr/bin/ntpdate 0.dk.pool.ntp.org
28 Mar 11:57:27 ntpdate[2443]: the NTP socket is in use, exiting

WHAT AM I doing wrong?

Offline

#2 2010-03-28 12:30:20

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Using ntpd and ntpdate

Do not background ntpdate, because it uses the same port as ntpd and will prevent it from starting.

Could it be this?


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#3 2010-03-28 12:30:33

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Using ntpd and ntpdate

I suggest stopping ntpd before manually running ntpdate, then start ntpd again.

Assuming your clock is reasonable you shouldn't need ntpdate each boot

Offline

#4 2010-03-28 12:40:25

fettouhi
Member
Registered: 2007-05-07
Posts: 775

Re: Using ntpd and ntpdate

Meyithi wrote:

Do not background ntpdate, because it uses the same port as ntpd and will prevent it from starting.

Could it be this?

I'm not doing that. Here is my daemon list from rc.conf

DAEMONS=(syslog-ng !network netfs crond alsa dbus hal networkmanager ntpd ufw cups avahi-daemon samba)

Regards

André

Offline

#5 2010-03-28 12:43:05

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Using ntpd and ntpdate

fettouhi wrote:
Meyithi wrote:

Do not background ntpdate, because it uses the same port as ntpd and will prevent it from starting.

Could it be this?

I'm not doing that. Here is my daemon list from rc.conf

DAEMONS=(syslog-ng !network netfs crond alsa dbus hal networkmanager ntpd ufw cups avahi-daemon samba)

Regards

André

Well, if ntpd is using the port, manually running ntpdate will fail because ntpd is using the port.  Either run ntpdate before ntpd or as poster above said stop ntpd before running ntpdate.

Last edited by Meyithi (2010-03-28 12:44:00)


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#6 2010-03-28 12:53:58

fettouhi
Member
Registered: 2007-05-07
Posts: 775

Re: Using ntpd and ntpdate

I did that in the beginning, running ntpdate before ntpd but ntpdate still failed on me at boot.

Offline

Board footer

Powered by FluxBB