clock problem

Oliver Fromme olli at lurza.secnetix.de
Tue May 8 12:49:05 UTC 2007


Martin Dieringer wrote:
 > My clock is now _15 minutes_ late, after about 1 day with powerd
 > running.
 > ntpd is running also.
 > Can nobody tell where the problem is here?

Are you sure that your /etc/ntp.conf ist correct?
Are there any messages from ntpd in /var/log/messages?
What's the output from "ntpq -p"?

Make sure that you have these two lines in /etc/rc.conf:

ntpd_enable="YES"
ntpd_sync_on_start="YES"

The second one is important -- it passes the -g option to
ntpd.  Without that option, ntpd refuses to perform an
initial correction if the clock offset is too large.

If there are still problems, please show us the contents
of your /etc/ntp.conf file.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

PI:
int f[9814],b,c=9814,g,i;long a=1e4,d,e,h;
main(){for(;b=c,c-=14;i=printf("%04d",e+d/a),e=d%a)
while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;}


More information about the freebsd-stable mailing list