You are not logged in.

#1 2010-02-09 17:06:56

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

NTP or NTPDATE for Setting Time

I have a server and installed NTP:

[root@arch /]# pacman -Q ntp
ntp 4.2.6-2

[root@arch /]# tail -1 /etc/rc.conf 
DAEMONS=(syslog-ng network netfs crond sshd ntpd)

My question is if I need 'ntpdate' as well to work along side NTP? I don't understand the relationship between the two packages. Anyone know?

Last edited by Carlwill (2010-02-09 17:07:32)


./

Offline

#2 2010-02-09 17:16:04

hw-tph
Member
Registered: 2006-11-01
Posts: 149

Re: NTP or NTPDATE for Setting Time

ntpdate is included in the ntp distribution. You're not clear on what you want to achieve. If you just want to set the time, use ntpd -q. This is preferred over using ntpdate, which will be removed from the ntpd package in the future (read the man pages).

Offline

#3 2010-02-09 17:29:21

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: NTP or NTPDATE for Setting Time

Yes I did read that in the 'man' page before posting my question however I was confused as I saw a lot of users here adding 'ntpdate' to their daemon's line in rc.conf. I thought perhaps I was missing something. I think 'ntp' is all I need to get synchronized time on my server.

Thanks!


./

Offline

#4 2010-02-09 18:28:41

hw-tph
Member
Registered: 2006-11-01
Posts: 149

Re: NTP or NTPDATE for Setting Time

Yes, ntpd is all you need to synchronize the time on your server. ntpdate was used to set the time once (usually executing the command manually, or automatically at boot), but I suppose you want continuous clock synchronization. The ntpd daemon does that for you.

Offline

#5 2010-02-09 20:23:39

sdolim
Member
Registered: 2010-01-20
Posts: 67

Re: NTP or NTPDATE for Setting Time

The "old" way of using ntpdate/ntpd was to use ntpdate to set your clock to the correct time, then ntpd would keep it correct by altering the frequency as needed.  (Ntpd used to refuse to do anything to your clock if it was too far off.)

Offline

#6 2010-02-16 02:38:49

1LordAnubis
Member
Registered: 2008-10-10
Posts: 253
Website

Re: NTP or NTPDATE for Setting Time

hw-tph wrote:

ntpdate is included in the ntp distribution. You're not clear on what you want to achieve. If you just want to set the time, use ntpd -q. This is preferred over using ntpdate, which will be removed from the ntpd package in the future (read the man pages).

Wow, thank you; thats exactly what I've been looking for. (ntpd -q)


Any society that would give up a little liberty to gain a little security will deserve neither and lose both.
-Benjamin Franklin
The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.
-George Bernard Shaw

Offline

Board footer

Powered by FluxBB