As the subject says, on my 6-stable systems ntpd just sits there and does nothing. The logs only mention when the daemon gets started or shut down. It complains when servers are not reachable, but does nothing when they are available. The drift file always contains 0.00. ntpdate and openntpd both successfully manage to set the time, so I suppose it's a problem with ntpd. It seems what ntpd has in complexity it lacks in robustness. I'd prefer to have openntpd in the base system. It seems to be very simple. And it works.
On Thu, Jul 19, 2007 at 07:08:21PM +0200, [LoN]Kamikaze wrote:> As the subject says, on my 6-stable systems ntpd just sits there and does > nothing.... > > It seems what ntpd has in complexity it lacks in robustness. I'd prefer to have > openntpd in the base system. It seems to be very simple. And it works.Eh; seems to work for me: g1-18(6.2-S)[1] ntpdc -np remote local st poll reach delay offset disp ======================================================================*172.16.8.12 172.17.1.18 4 128 377 0.00322 -0.003667 0.00871 g1-18(6.2-S)[2] uname -a FreeBSD g1-18.catwhisker.org. 6.2-STABLE FreeBSD 6.2-STABLE #453: Wed Jul 18 06:40:27 PDT 2007 root@g1-18.catwhisker.org.:/common/S1/obj/usr/src/sys/CANARY i386 g1-18(6.2-S)[3] Peace, david -- David H. Wolfskill david@catwhisker.org Anything and everything is a (potential) cat toy. See http://www.catwhisker.org/~david/publickey.gpg for my public key. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070719/097bc400/attachment.pgp
On Jul 19, 2007, at 10:08, [LoN]Kamikaze wrote:> As the subject says, on my 6-stable systems ntpd just sits there > and does > nothing. The logs only mention when the daemon gets started or shut > down. It > complains when servers are not reachable, but does nothing when > they are available. > > The drift file always contains 0.00. > > ntpdate and openntpd both successfully manage to set the time, so I > suppose > it's a problem with ntpd.Are you on a static IP address? If not, ntpd obtains its IP address when it starts up and uses it forever. If your IP address changes then it will not be able to communicate with the upstream ntp servers. It has to be restarted everytime your IP address changes.
* Doug Hardie <bc979@lafn.org> [2007-07-19 10:32 -0700]:> Are you on a static IP address? If not, ntpd obtains its IP address when it > starts up and uses it forever. If your IP address changes then it will not > be able to communicate with the upstream ntp servers. It has to be > restarted everytime your IP address changes.I use the attached patch to avoid the restarts. I used a similar patch on 4.X for some years and noticed no bad effects. Nicolas -- http://www.rachinsky.de/nicolas -------------- next part -------------- --- contrib/ntp/ntpd/ntp_io.c.orig Tue Jul 20 17:01:27 2004 +++ contrib/ntp/ntpd/ntp_io.c Fri Oct 6 00:32:31 2006 @@ -466,6 +466,14 @@ if (scan_ipv6 == ISC_FALSE && family == AF_INET6) continue; + if(strncmp(isc_if.name,"tun",3)==0) + { + if (debug) + printf("ignoring <%s> (tun*)\n", isc_if.name); + continue; + } + + /* Check to see if we are going to use the interface */ if (address_okay(&isc_if) == ISC_TRUE) { convert_isc_if(&isc_if, &inter_list[idx], port);
On 2007-Jul-19 19:08:21 +0200, "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> wrote:>As the subject says, on my 6-stable systems ntpd just sits there and does >nothing. The logs only mention when the daemon gets started or shut down. It >complains when servers are not reachable, but does nothing when they are available.I have been running ntpd on FreeBSD 2.x thru 7.x without problems so I suspect it's something in your configuration. What does your 'ntp.conf' contain? What does 'ntpdc -p -c kerni -c loopi -c sysi -c syss' give you?>openntpd in the base system. It seems to be very simple. And it works.So does ntpd. -- Peter Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070719/415eb155/attachment.pgp