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

Re: ntp won't work



Aargh, think I cocked up my last reply... ignore that, and copy this :-)
-s isn't for specifying a file of NTP servers; it's to make it log to
syslog instead of standard output.

Script for running ntpdate when connecting:

#!/bin/bash
. /etc/default/ntp-servers
test -n "$NTPSERVERS" || exit 0
echo -n "Running ntpdate to synchronise clock"
/usr/sbin/ntpdate -u -b -s $NTPSERVERS
echo "."
exit 0

Contents of /etc/default/ntp-servers:

NTPSERVERS="time-server.ndo.com"

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: pgp1vePJfLE8B.pgp
Description: PGP signature


Reply to: