NTP/ Rdate

Incognito

Verified User
Joined
Jan 17, 2010
Messages
28
hi i have NTPD installed and rdate... and my server time seems to drift.. aboiut 20-50sec ahead.. and my ircd gets notices about it...

i was wondering if someone can help me set ntp/rdate properly so i dont get these problems please

thanks
 
I run a cronjob
Code:
0 * * * * /usr/sbin/ntpdate tick.usno.navy.mil
 
From console AKA ssh

Code:
echo "0 * * * * /usr/sbin/ntpdate tick.usno.navy.mil" >> /var/spool/cron/root

This will sync the time every hour.
 
can i use echo "0 * * * * /usr/sbin/ntpdate pool.ntp.org" >> /var/spool/cron/root ?
 
ok how do i remove echo "0 * * * * /usr/sbin/ntpdate tick.usno.navy.mil" >> /var/spool/cron/root as i added it by mistake instead of other one
 
You can use a text editor such as nano to edit the file. Some like vi but I find it non intuitive.
 
Have you tried restarting the crond daemon (not sure if you need to; I haven't read man crond yet today :)?

Also using a vps you should check with your provider; you may not be able to correct time back to the system hardware.

Jeff
 
Hello,
Acording to me,
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. rdate is the older standard that in many cases is now replaced by ntp/ntpd. Unlike ntp, rdate sets the new time instantly and is more suitable in situations like initial setup. Under Linux, rdate does not have its own network service and is supported by the standard time service instead. The Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. NTP is one of the oldest Internet protocols still in use.
thankyou
 
Back
Top