From owner-freebsd-questions@FreeBSD.ORG Sat Jul 29 12:57:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1595E16A4DE for ; Sat, 29 Jul 2006 12:57:25 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0D6443D46 for ; Sat, 29 Jul 2006 12:57:24 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 32605 invoked from network); 29 Jul 2006 12:57:24 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Jul 2006 12:57:23 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 61DC528449; Sat, 29 Jul 2006 08:57:21 -0400 (EDT) To: Freminlins References: From: Lowell Gilbert Date: Sat, 29 Jul 2006 08:57:21 -0400 In-Reply-To: (freminlins@gmail.com's message of "Fri, 28 Jul 2006 10:20:15 +0100") Message-ID: <44r7046026.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Questions Subject: Re: ntpd on FreeBSD 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, 29 Jul 2006 12:57:25 -0000 Freminlins writes: > Hello, > > After a power outaga (Level 3 at Goswell Road, London), all our FreeBSD > machines came up OK. > > Nearly all of them had a problem though with ntpd. I'm guessing that most of > these machines booted before the the ntp servers came up. What happens is > that the machine runs two copies of ntpd: > > root 337 0.0 0.3 2964 1772 ?? Ss Sun04PM > 0:24.75/usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid > root 427 0.0 0.3 2964 1788 ?? S Sun04PM > 0:00.76/usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid > > ... and they never sync. The only way to fix this is to kill both ntpds, > then restart ntpd. > > Is there a tidy way round this? It's not much fun logging into 40+ machines > and killing a restarting a key process. I have no idea why two ntpds are > running in the first place. The machines that are correct have an identical > config. For what it's worth, I spent a while looking at it, and I can't see anything that would cause this. Ending up with *no* ntpd running, I can imaging from various failures, but not two. I suspect I would need another clue to look in the right place.