[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ntp configuration



Bob Proulx <bob@proulx.com> wrote:
> In the latest ntp configuration the file is /etc/default/ntpdate.  So
> your problem is already fixed and will be in the next Debian release.

A quick hack to /etc/default/ntpdate and all's happy - this uses your
non-local "server" entries in /etc/ntp.conf:

----cut--here----
# servers to check
NTPSERVERS=`
    /usr/bin/awk '/^server/ && $2 !~ /^127/ {print $2}' /etc/ntp.conf 2>/dev/null |
    /usr/bin/xargs
`
test -z "$NTPSERVERS" && NTPSERVERS="pool.ntp.org"
#
# additional options for ntpdate
#NTPOPTIONS="-v"
NTPOPTIONS=""
----cut--here----


There must be a good reason for not already doing this - but I sure
can't work it out.

Chris



Reply to: