On Thursday 15 of January 2004 16:45, Prabu Subroto wrote:
Dear my friends....
I think I need xntp to make the clock of my server and my workstation be always correct.
my server and the clients use SuSE 8.2. and each of them connected to the internet through router.
I installed the xntp from the cd, and start the service on runlevel editor tool (xntpd) and do "rcxntpd start".
either on the server and client I did the same.
Is it enough to make the xntp keep the clock of each machine be always correct? do I have to edit/configure "/etc/ntp.conf"?
I don't use ntp daemon. ntpdate will be your friend. My scripts: ============================ /usr/local/bin/sync_clock (chmod 755): #!/bin/sh # clock synchro # launch by cron ping 194.204.159.1 -c3 -w5 | grep 'icmp_seq' >/dev/null let wynik=$? if [ $wynik -eq 0 ]; then (/usr/sbin/ntpdate ntp.task.gda.pl /sbin/hwclock --systohc ) >> /var/log/ntp_sync.log else echo No internet connection available >> /var/log/ntp_sync.log fi ==================== crontab for root (edited by crontab -e): # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.26037 installed on Wed Jan 14 19:20:28 2004) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) # # clock synchro 15 */3 * * * /usr/local/bin/sync_clock ===================== Cron will start every three hours (@ XX:15) time synchronization and hardware clock adjustment. Regards, -- Marek Chlopek