From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 23:53:26 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 66F001065679 for ; Wed, 3 Dec 2008 23:53:26 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB648FC31 for ; Wed, 3 Dec 2008 23:53:26 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay12.apple.com (relay12.apple.com [17.128.113.53]) by mail-out3.apple.com (Postfix) with ESMTP id ECB6C47449AF; Wed, 3 Dec 2008 15:34:47 -0800 (PST) Received: from relay12.apple.com (unknown [127.0.0.1]) by relay12.apple.com (Symantec Brightmail Gateway) with ESMTP id D94D0464002; Wed, 3 Dec 2008 15:34:47 -0800 (PST) X-AuditID: 11807135-a7b7dbb000000d45-3a-49371797e609 Received: from cswiger1.apple.com (cswiger1.apple.com [17.227.140.124]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay12.apple.com (Apple SCV relay) with ESMTP id C16BE420003; Wed, 3 Dec 2008 15:34:47 -0800 (PST) Message-Id: <77BB50CF-73C4-4A11-9E78-A3FA69D2D890@mac.com> From: Chuck Swiger To: Nerius Landys In-Reply-To: <560f92640812031301m5f51d2c7ia3bcf44454a47820@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Wed, 3 Dec 2008 15:34:47 -0800 References: <560f92640811211647q551daccnaec4e8085bb8e042@mail.gmail.com> <560f92640812031301m5f51d2c7ia3bcf44454a47820@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) X-Brightmail-Tracker: AAAAAA== Cc: questions@freebsd.org 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: Wed, 03 Dec 2008 23:53:26 -0000 On Dec 3, 2008, at 1:01 PM, Nerius Landys wrote: [ ... ] > Does anyone know why I'm getting 2 ntpd processes running after bootup > (and ntpd fails to adjust the clock as a result)? Any suggested fix > would be appreciated. When ntpd first starts up, it forks a child process to perform DNS resolution of the timeservers listed in its config. If that fails, that generally indicates that DNS was not working at the time, or something else was going wrong with the network. [ See ntpd/ntp_config.c, search for fork() or "ntpd_initres". ] The fix is to make sure that you have a working network and resolver available when you try to startup ntpd. Failing that, you can hardcode IP addresses in /etc/ntp.conf, but that's a bad idea for anything outside of timeservers which you control. -- -Chuck