* pelibali <pelibali@freemail.hu> [01-25-05 04:23]:
#!/bin/sh
/etc/init.d/xntpd start date ntpdate xxx hwclock --systohc --utc date /etc/init.d/xntpd stop
(Of course xxx is actually a correct domain-name, where the time-service is constantly running by my provider.) After attempting to run the script, I usually get this error-message I couldn't decypher:
khazad-dum:/home/oscar # synctime Starting network time protocol daemon (NTPD) done Tue Jan 25 09:29:38 CET 2005 25 Jan 09:29:39 ntpdate[6373]: the NTP socket is in use, exiting Tue Jan 25 09:29:41 CET 2005 Shutting network time protocol daemon (NTPD) done khazad-dum:/home/oscar
Do you have an idea, what do these few lines exactly mean, and how to avoid this kind of error?
xntpd is using the socket, therefore ntpdate cannot. You may run one or the other, but not both at the same time. AIUI, you do not want to run both anyway. xntpd keeps variation from correct time and system and tries to maintain correct time even when the signal is not available. ntpdate is like setting your watch manually while looking at the clock on the wall, then, when you think that the variation is too much, setting it again. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos