[NTLUG:Discuss] SOLVED (sortof) Re: Something OTHER than Top Post - VMWware Time Sync & Named

David Simmons dave at dgnal.net
Mon Jul 14 15:52:13 CDT 2008



While I can't seem to get ntpd working to correctly set the time....here's
a work-around:

First off - make sure that ntpd is not
running:
      service ntpd stop
      service ntpd status   (make
sure there's none running)

Then make sure it doesn't
automatically run again
      
chkconfig --levels 12345 ntpd off

Then create a file (called,
say, ntpdate ) within the /etc/cron.hourly directory:
     vi or joe or emacs or nano   
/etc/cron.hourly/ntpdate

      stick
in there:

              
#!/bin/bash
              
ntpdate 0.pool.ntp.org
              
exit 0

and make that file 'runnable / executable' by doing
a:

             
chmod 755 ntpdate

and badda-bing, badda-boom.....while not as
elegant as ntpd (and facing extinction - as the ntpdate command is going
away)....it'll at least update the time every hour until I can figure out
what else is happening?

Hope that helps someone,

 -dave






More information about the Discuss mailing list