[TriLUG] Best NTP Client for Linux
Andrew Perrin
clists at perrin.socsci.unc.edu
Tue Apr 29 08:44:50 EDT 2003
You shouldn't need to pipe it through date; according to man ntpdate:
DESCRIPTION
ntpdate sets the local date and time by polling the Net
work Time Protocol (NTP) server(s) given as the server
arguments to determine the correct time. It must be run as
root on the local host.
...
-q Query only - don't set the clock.
My debian system has the following in /etc/init.d/ntpdate:
#! /bin/sh
test -f /usr/sbin/ntpdate || exit 0
test -f /etc/default/ntp-servers || exit 0
. /etc/default/ntp-servers
test -n "$NTPSERVERS" || exit 0
case "$1" in
start|restart|force-reload)
echo -n "Running ntpdate to synchronize clock"
/usr/sbin/ntpdate -u -b -s $NTPSERVERS
echo "."
;;
stop)
;;
*)
echo "Usage: /etc/init.d/ntpdate {start|stop|restart|force-reload}"
exit 1
esac
exit 0
----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists at perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On Tue, 29 Apr 2003, bp wrote:
> ntpdate rackety.udel.edu|date
>
> This is probably a pretty cheap way of doing things but I had ntpdate on
> my system and the above line seems to do the job. Unless I'm over
> looking something (let me know) I'm just going to throw that line in
> cron to run every morning.
>
> Thanks - bp
> Got the time server list from:
> http://www.eecis.udel.edu/~mills/ntp/clock1a.html
>
> bp wrote:
> <snip/>
>
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
> http://www.trilug.org/faq/TriLUG-faq.html
>
More information about the TriLUG
mailing list