Johan Swenker wrote:
On Fri, 16 Sep 2005 17:26:57 -0700, Tony wrote:


Hi All,

    I am running Cent OS 4.1 (same as Red Hat Enterprise
Linux 4.1, only cheaper).

    How do I change ntpd's time server?  I have altered,
/etc/ntp.conf and /etc/ntp/ntpservers to use time.nist.gov.
I stopped and restarted ntpd several times.

   What am I doing wrong?


Looks like you are using pool.ntp.org. Search in /etc to find either
194.88.5.36 or pool.ntp.org. A way to search is using the command:
grep -r  pool.ntp.org /etc


Hi Johan and Danny,

   Thank you for the input.  I went searching around for an
alternate ntp.conf file and did not find one.  So, I renamed
/etc/ntp.conf and restart ntpd.  Oh did it whine!

   So I opened /etc/rc.d/init.d/ntpd and looked.  Hmmm.
I echoed out $ntpconf from the readconf subroutine.  Said
it was /etc/ntp.conf.  Frustrated, I looked at /etc/ntp.conf
a few hundred more times.  Then it  occured to me to go back
/etc/rc.d/init.d/ntpd and check out the start routine.

Bingo!

        if [ -s "$ntpstep" -o -n "$dostep" ]; then
            # Synchronize with servers if step-tickers exists
            # or the -x option is used
            echo -n $"$prog: Synchronizing with time server: "
            /usr/sbin/ntpdate $dropstr -s -b -p 8 \
                       $tickers 2>/dev/null >/dev/null

Okay, so tickers is hard coded as ntpstep=/etc/ntp/step-tickers.
I opened /etc/ntp/step-tickers and modified it to the following:

      # 0.pool.ntp.org
      # 1.pool.ntp.org
      # 2.pool.ntp.org
      time.nist.gov
      127.127.1.0

Problem solved!  You guys put me on the right track
to find the error.  :-)

Many thanks,
--Tony

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to