From owner-freebsd-questions@FreeBSD.ORG Sat Nov 22 00:47:53 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 E7F011065670 for ; Sat, 22 Nov 2008 00:47:52 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 658AF8FC08 for ; Sat, 22 Nov 2008 00:47:52 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so832982fgb.35 for ; Fri, 21 Nov 2008 16:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=PTXZ8aL3YQrZgBTNX8Nwyj/BzmRes8onxllESd6Hhx4=; b=nEEj4SQvjfWk7N4bHSU3uw+6sZsOsNtXKeDqYsvJ9PlFn8Dv4FV8I/+N6XBLRd3hEU EoNUosvezeF+kGG+f2vwb7VwLH/Z0j1srtQKlxDOltgAUf4ENr9RSvHVr/4s4uyrIwsO KY0FbngajtmQ5GSSOuatKAabBJPTwg4UhmUbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=w+n8WSSMa6xxRlvuqfDF70x93AE4UoI4EkxLQZJQElAdvqG8LF9s141DSzyK5HEQFN iK73z1UW1rMXNDee9ZGxdHaQjbI5q/Jk+B3xaerLmHeDenPMhBwU3F8TT/ui7b11eazm qFrXeofj7+v3CWmBl2Bf2tZUJFxbwVpzbQLvM= Received: by 10.180.235.10 with SMTP id i10mr320761bkh.58.1227314870309; Fri, 21 Nov 2008 16:47:50 -0800 (PST) Received: by 10.180.240.16 with HTTP; Fri, 21 Nov 2008 16:47:50 -0800 (PST) Message-ID: <560f92640811211647q551daccnaec4e8085bb8e042@mail.gmail.com> Date: Fri, 21 Nov 2008 16:47:50 -0800 From: "Nerius Landys" To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: nlandys@gmail.com Subject: 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 00:47:53 -0000 FreeBSD 7.0. I am having a problem when ntpd starts at bootup. It continues to have 2 processes running, the process which does the DNS lookup fails to exit, and ntpd fails to adjust the clock even after days of running. Immediately after bootup and several hours or days later this is what I get: # ps -U root | grep ntpd 87837 ?? Ss 0:00.03 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid 87838 ?? S 0:00.00 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid If I do a "/etc/rc.d/ntpd restart" on a running system it fixes the problem, and only one of the ntpd processes remains, and the clock gets adjusted. I have named running as a caching name server on my system. The contents of my /etc/resolv.conf: domain nerius.com nameserver 127.0.0.1 My /etc/rc.conf: ... named_enable="YES" ntpd_enable="YES" ... I believe that the problem with ntpd is that named is started AFTER ntpd. 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 Also, should I report this as a bug to some sort of bug tracking system? Where? I really like FreeBSD and would like to see all bugs get fixed. Thanks for a great system to all of you. - Nerius