ntpdate "use NTP to sync it" error
Carmen Sandiego on Tuesday, 29 March 2005 00:58:08
i have this problem...:
i use debian b0x and i setting up aiccu client and work perfeclty...but some time like after 3/4 day my Clock is off by Some seconds and so aiccu tunnel going down...
So i set up crontab with Ntpdate:
sparc64:/home/gaspo# crontab -l
0,5,10,15,20,25,30,35,40,45,50,55 * * * * ntpdate tempo.ien.it
-- i try it so every 5 min sinc the clock...but seems now work anibody know why?
i must put another kind of crontab like every 1 min 0,1,ecc....?
i think is ok my crontab...
or i can put another crontab like every time i cannot ping other ipv6 my script make aiccu stop;ntpdate tempo.ien.it;aiccu restart....
anybody have same problem?
ntpdate "use NTP to sync it" error
Shadow Hawkins on Tuesday, 29 March 2005 14:22:25
Hi Fabio,
I suggest you setup ntpd, this will keep your clock synched to an external timesource. Try googling around for debian setup.
-Willem.
ntpdate "use NTP to sync it" error
Carmen Sandiego on Wednesday, 30 March 2005 00:55:24
i setup new tipe of crontab:
sparc64:/home/gaspo# cat /bin/ntpcron
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin
ping6 -c 2 -I 2001:1418:100:95::2 irc.eutelia.it
if [ $? -eq 0 ]
then
echo "ipv6 Active" ;
else
/bin/ntpdate.sh ;
fi
--
sparc64:/home/gaspo# cat /bin/ntpdate.sh
pkill aiccu
ntpdate tempo.ien.it
aiccu start
--
sparc64:/home/gaspo# crontab -l
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/ntpcron
sparc64:/home/gaspo#
--
and now all work because if every 5 minuts ipv6 cannot ping the script kill aiccu adjust Time and restart aiccu..so now work xfectly...
Posting is only allowed when you are logged in. |