You are not logged in.
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
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
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
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
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
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