/etc/ntp.conf
server 192.5.41.41 # tock.usno.navy.mil
server ntp-01.caltech.edu # Caltech border machine
server timekeeper.isi.edu # ISI
driftfile /etc/ntp/drift
/etc/rc.d/rc.local
# Start the NTP daemon
#
if [ -x /etc/rc.d/rc.ntpd ]
then
/etc/rc.d/rc.ntpd start
fi
/etc/rc.d/rc.ntpd
#!/bin/sh
#
# start the Network Time Protocol
#
if [ ${1} = "start" ]
then
# set the clock from a public server
echo "Setting clock from tock.usno.mil..."
/usr/sbin/ntpdate -v 192.5.41.41
sleep 2
echo "Starting Network Time Protocol daemon..."
/usr/sbin/ntpd -l /tmp/ntp.log
elif [ ${1} = "stop" ]
then
echo "Stopping Network Time Protocol daemon..."
pid=`/bin/ps -e | /usr/bin/grep ntp |\
/usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
if [ "${pid}" != '' ]
then
kill ${pid}
fi
fi