From owner-freebsd-questions@FreeBSD.ORG Mon Nov 18 09:29:18 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70CBB764 for ; Mon, 18 Nov 2013 09:29:18 +0000 (UTC) Received: from mail-qe0-x234.google.com (mail-qe0-x234.google.com [IPv6:2607:f8b0:400d:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 34C812A28 for ; Mon, 18 Nov 2013 09:29:18 +0000 (UTC) Received: by mail-qe0-f52.google.com with SMTP id cz11so3401937qeb.11 for ; Mon, 18 Nov 2013 01:29:17 -0800 (PST) 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=KkDf4GGV3Fi+k9kJdnZ7VRB2mY8EJQqS9Y/a8HyM5vs=; b=Xa6UFZbcid0xQ+CYr9LQW1hrfpa0eIg9NyTXFvA7KJbbr8skc3BJA14iG9mv87/fP7 Q+eVD+gh61I25OELlOxc02OUhtShjJYpSrns0wrYKEJAp22JPbS6eQYGW8VqjS4Mla3X AWCrdJ+1in4iN17QjSanbpo2hoVNNtdiCSq+/OzyyCNUUigUjkqTv0DYSq4rGpJH8ISB oma6kPSDOEQEP7Q8N/2D5naZHZc/txLmp3rjTqpAkkjMAqfYRVgAe06kDkn0rFupsSpy O0gsIK3JwSm2TQjnfLYDJiYZ5fB6XkAH48xq+ENFnft8+f4oVRQVgPXh4yGV4Zi9TAgJ 1w9A== MIME-Version: 1.0 X-Received: by 10.49.98.100 with SMTP id eh4mr32469451qeb.42.1384766956916; Mon, 18 Nov 2013 01:29:16 -0800 (PST) Received: by 10.224.36.137 with HTTP; Mon, 18 Nov 2013 01:29:16 -0800 (PST) In-Reply-To: <20131114145656.GL786@lena.kiev> References: <20131113144937.089e8a2a@gumby.homeunix.com> <20131114145656.GL786@lena.kiev> Date: Mon, 18 Nov 2013 09:29:16 +0000 Message-ID: Subject: Re: unbound and ntp in FreeBSD 10 Beta 3 From: krad To: Lena@lena.kiev.ua Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: Gerard Seibert , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Nov 2013 09:29:18 -0000 it sounds like we might have a feature drop when we moved to unbound, to fix this problem when running bind in freebsd you could use the following variables to stop the rc scripts continuing until the nameserver is up and running. I have submitted a pr to see if it can get added to the base os to save any hacks # grep named /etc/rc.conf named_enable="YES" named_program="/usr/local/sbin/named" named_wait="yes" # Wait for working name service before exiting named_wait_host="localhost" # Hostname to check if named_wait is enabled named_enable="YES" from /etc/rc.d/named named_poststart () { make_symlinks if checkyesno named_wait; then until ${command%/sbin/named}/bin/host $named_wait_host >/dev/null 2>&1; do echo " Waiting for nameserver to resolve $named_wait_host" sleep 1 done fi } On 14 November 2013 14:56, wrote: > > From: RW > > > This looks like the cause of the problem: > > > > $ rcorder /etc/rc.d/* | grep -E "ntp|unbound" > > /etc/rc.d/ntpdate > > /etc/rc.d/ntpd > > /etc/rc.d/local_unbound > > > Alternately you might try adding an extra rc file with: > > > > # PROVIDE: ORDERUNBOUND > > # REQUIRE: ntpd ntpdate > > # BEFORE: local_unbound > > /etc/rc.d/ntpdate contains: > > # REQUIRE: NETWORKING syslogd named > > I think that "unbound local_unbound" should be included into this line. > > I use unbound as local recursive resolver in 8.4-RELEASE. I added that, > and "sleep 1" before "${ntpdate_program:-ntpdate} $rc_flags > $ntpdate_hosts". > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >