From owner-freebsd-questions@FreeBSD.ORG Sat Nov 22 12:25:24 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E48F1065670 for ; Sat, 22 Nov 2008 12:25:24 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id C96C58FC0C for ; Sat, 22 Nov 2008 12:25:23 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id E23DEAFC1C6; Sat, 22 Nov 2008 03:06:45 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 22 Nov 2008 13:06:01 +0100 User-Agent: KMail/1.9.7 References: <560f92640811211647q551daccnaec4e8085bb8e042@mail.gmail.com> In-Reply-To: <560f92640811211647q551daccnaec4e8085bb8e042@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811221306.02518.fbsd.questions@rachie.is-a-geek.net> Cc: questions@freebsd.org, Nerius Landys Subject: Re: named and ntpd start order in rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2008 12:25:24 -0000 On Saturday 22 November 2008 01:47:50 Nerius Landys wrote: > Trying to reproduce problem. On a running system. I shut down named. Then > I restart ntpd, then I start named. I can reproduce the problem that > happens on bootup - ntpd has 2 processes and does not adjust the clock. > Restarting ntpd while named is running fixes the problem > > I believe that the fix for this is to add a dependency to /etc/rc.d/ntpd > script, adding "named" to "REQUIRE" section in comments. In your opinion, > is this a robust fix? For example the line in my /etc/rc.d/ntpd script > that looks like so: > > # REQUIRE: DAEMON ntpdate cleanvar devfs > > would be changed to this: > > # REQUIRE: DAEMON ntpdate cleanvar devfs named Thanks! It seems that's what been going wrong ever since 6.3 or so on my machine as well. You can report it using send-pr(1), however - you will have to test what happens if you comment out named_enable="YES" in /etc/rc.conf, then update /etc/resolv.conf to use your ISP's DNS servers and reboot. If ntpd does not start at all then ("because you told it it requires named"), then it's not the proper fix. However, I believe REQUIRE is only used for ordering the scripts, not actually disabling one if a service in the REQUIRE line isn't started. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.