[plug] NTP update problems - dialup
weirdo at tigris.org
Tue Mar 29 17:47:48 WST 2005
Gavin Rogers wrote:
> At 10:25 AM 29/03/2005, you wrote:
>> Once again I'm having problems getting synchronisation with a time
>> server. What I have down is right a small script and put it in
>> /etc/ppp/ip-up.d/ so that it is run last (so all the routing stuff is
>> The script is as follows.
>> ((echo "Updating Time";date; sleep 1; /usr/sbin/ntpdate -u -d -v
>> pool.ntp.org 2>&1; echo $?;date) | mail -s "Updating Time" webmaster) &
> Seems to be an awfully complex way to solve the problem. Why not just
> use ntpd and stop/start it when your dialup connection is active? (you
> could probably leave it going all the time but ntpd can take ages to
> realise it's peers are available again)
I need to run ntpd all the time and synchronise the clock when the
dialup connection is up. I really need a time server that doesn't need
peers but I will have to look into that later.
All the above script does is run '/usr/sbin/ntpdate -u pool.ntp.org
2>&1' to update the time. The rest is for debugging.
Tim White - Use the Fox, Luke!
PGP/GPG id: 602E944D, Pub Key Serv: subkeys.pgp.net
Fingerprint: 04C2 9682 B7B2 3006 009D A9F3 067E EDCD 602E 944D
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Linux linmedia 2.6.10linmedia #4 Mon Feb 21 21:19:38 WST 2005 i686 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: OpenPGP digital signature
More information about the plug