From owner-freebsd-stable@freebsd.org Tue Jul 14 14:33:07 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AAFDF9A1D0A for ; Tue, 14 Jul 2015 14:33:07 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4489CA0C for ; Tue, 14 Jul 2015 14:33:07 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by wibud3 with SMTP id ud3so57313431wib.1 for ; Tue, 14 Jul 2015 07:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AHCP1v0ZrlqlCI3JIwzTURHKcuDxNZEFsU6sZBwJJ0o=; b=n/s0QBvX/O+/Z+VA1+12O68TxG8vCGha2I2/v8AriFIOfJZn/o0bz00rgtzM6HiHWC 7uSgOr+fFwX9XcK8dNUQ7rePAZoL/HyvzYKnziT06nBKU0lvIQVUix5LZe8Z3YbLDATD 8fqJBkVldE+WWGpN6T3yZCHp3TpJvlwsMLSCjm+PIW59UWhKuWxRfqzosWJ7+Yv1sywi thsB1tzq4pUmCo16NsysXzqcWHZJD6PVVW7VjgoQMPGD03GMwVSKqAkQANrotLk+loWs w8fmTmjqwVlHIqhWZRs6kJ3Qpa19BdnQDuVzoNNUjPZh1RXXAi23QIiglbHuRZqteb3h BErA== MIME-Version: 1.0 X-Received: by 10.194.172.8 with SMTP id ay8mr20463522wjc.106.1436884385713; Tue, 14 Jul 2015 07:33:05 -0700 (PDT) Received: by 10.180.73.5 with HTTP; Tue, 14 Jul 2015 07:33:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Jul 2015 15:33:05 +0100 Message-ID: Subject: Re: Circular dependency between local_unbound and ntpd? From: krad To: Paul Mather Cc: freebsd-stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 14:33:07 -0000 As $ grep REQUIRE /etc/rc.d/ntpd # REQUIRE: DAEMON ntpdate FILESYSTEMS devfs You could set something similar to the following in the rc.conf ntpdate_hosts="a.b.c.d w.x.y.z" ntpdate_enable=yes On 14 July 2015 at 14:43, Paul Mather wrote: > I believe I ran afoul of a circular dependency between local_unbound and > ntpd on my 10.2-PRERELEASE system. I use a stock /etc/ntp.conf and use > ntpd_sync_on_start="YES". > > Last night, a BIOS settings reset cause my CMOS clock to go WAY out of > synch for the first time. No problem, I thought: NTP will correct it at > boot. > > Wrong! > > When my system booted, the time was not corrected. Also, DNS resolution > was not working. I figured out it was because local_unbound relies on an > accurately set clock, but the clock could not be set accurately because my > stock ntp.conf requires working DNS resolution to reach the NTP servers. > > That sounds like a potential circular dependency to me. > > My workaround at the time was to look up 0.freebsd.pool.ntp.org on > another system; stop ntpd; then do a ntpdate using the IP addresses to set > the clock. Once the clock was set accurately, things were all hunky dory. > > Does anyone have any suggestion for an automatic way around this? I guess > one way would be to put the IP address of an NTP server into my ntp.conf > file, so at least one would be reachable without needing a working DNS? > > My main concern is for those systems like my Raspberry Pi and Beaglebone > Black that don't have a battery-backed clock. I currently don't use > local_unbound on those, but it seems like I'd encounter this problem > routinely if I did. > > Cheers, > > Paul. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >