[ntp:questions] Local clock question with dialup connection
cave.dnb at tiscali.fr
Mon Apr 23 16:30:54 UTC 2007
On Friday 20 April 2007 23:45, Harlan Stenn wrote:
> >>> In article <200704202310.06956.cave.dnb at tiscali.fr>,
> >>> cave.dnb at tiscali.fr (Nigel Henry) writes:
> Nigel> I've been seriously reading the docs today, and have found a server
> Nigel> option for /etc/ntp.conf named "calldelay", which says it works with
> Nigel> burst, or iburst. iburst sends a pkt, then calldelay delays the
> Nigel> sending of the second packet by howmany seconds you have set to
> delay Nigel> the sending of the second pkt by. This seems like what I'm
> looking Nigel> for, but am not sure how to setup calldelay in
> I could be wrong.
> I don't think this is what you are looking for.
> calldelay will wait before sending subsequent packets.
> Your problem seems to be that the initial "connection" isn't getting set up
> as expected (or something, as I recall, and I may be confused).
Well the problem is partitially fixed, by running ntp-restart, with sleep
changed to 420 from /etc/rd.d/rc.local, as.
This works ok, and gives enough time during the sleep period for the machine
to complete bootup, login, and connect to the Internet with the Smoothwalls
I'd still like this to be a bit more automatic though. My lack of
shellscripting knowledge doesn't help, but I don't think Bob Beers script is
doing what I'm looking for. I am studying the abs-guide on Debian though, so
I'm not expecting others to always be solving my problems.
The script needs to ping some server on the Internet. If it receives no
response, and exits with a code 1, it will then sleep for 60 secs, then run
the ping again, and so on. When an Internet connection is eventually
established, and that is if I understand this correctly, ping will then exit
with a code 0.
Once a code 0 is received, showing the host to be alive, no further pings
should be sent, and the script at /usr/local/bin/ntp-restart will be run.
The ping script will be initiated from /etc/rc.d/rc.local, and run in the
background, so allowing bootup to proceed.
I know this is a bit OT, but NTP related all the same.
Very gratefull for any help from you scripting geniuses.
> questions mailing list
> questions at lists.ntp.isc.org
More information about the questions