On Sunday 06 November 2005 19:52, Patrick Shanahan wrote:
* Bjørge Solli
[11-06-05 13:42]: Starting network time protocol daemon (NTPD) done pia:~ # ntpdate rasmus.uib.no 6 Nov 19:42:11 ntpdate[7890]: the NTP socket is in use, exiting
There *is* something wrong. You may not have two instances of ntp active at the same time. "the NTP socket is in use".
you _must_ stop ntpd before trying the ntpdate command.
If you only read the whole transcript of my commands you would have known that is exactly what I did. I just started it afterwards to show that if it runs ntpdate returns a different error..
there are several reasons why the date is not set my xntpd, one being that the date is toooo far out of of sync or it took tooo long for the initalizing.
STOP any instance of ntp, then check that none is running: ps aux|grep ntpd
run as root: ntpdate no.pool.ntp.org rasmus.uib.no no.pool.ntp.org
But since you insist, I do this again: pia:~ # /etc/init.d/xntpd stop Shutting down network time protocol daemon (NTPD) done pia:~ # ps aux|grep ntpd root 10328 0.0 0.0 1740 572 pts/7 S+ 21:32 0:00 grep ntpd pia:~ # ntpdate no.pool.ntp.org rasmus.uib.no no.pool.ntp.org 6 Nov 21:32:17 ntpdate[10332]: no server suitable for synchronization found I also manually sat the time right(+-1min) according to http://www.worldtimeserver.com/current_time_in_NO.aspx
THEN restart xntpd
pia:~ # /etc/init.d/xntpd restart Shutting down network time protocol daemon (NTPD) done Try to get initial date and time via NTP from rasmus.uib.no failed Starting network time protocol daemon (NTPD) done -- Bjørge Solli