From owner-freebsd-stable@FreeBSD.ORG Thu Dec 1 01:02:21 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E571E16A41F for ; Thu, 1 Dec 2005 01:02:21 +0000 (GMT) (envelope-from ian_leroux@fastmail.fm) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DA4543D5D for ; Thu, 1 Dec 2005 01:02:19 +0000 (GMT) (envelope-from ian_leroux@fastmail.fm) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 42A85D1AA58 for ; Wed, 30 Nov 2005 20:02:18 -0500 (EST) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Wed, 30 Nov 2005 20:02:18 -0500 X-Sasl-enc: ekD8U/NIDcQbYFAnYLR8iYPYPGpJeiGT9axJ7uGug4AQ 1133398937 Received: from TANG-FIVE-EIGHTY-ONE.MIT.EDU (TANG-FIVE-EIGHTY-ONE.MIT.EDU [18.251.7.70]) by frontend2.messagingengine.com (Postfix) with ESMTP id 32C2057146F for ; Wed, 30 Nov 2005 20:02:16 -0500 (EST) From: "Ian D. Leroux" To: freebsd-stable@freebsd.org In-Reply-To: <20051130105535.M796@border.crystalsphere.multiverse> References: <1133316076.522.28.camel@localhost> <20051130105535.M796@border.crystalsphere.multiverse> Content-Type: text/plain Date: Wed, 30 Nov 2005 20:02:17 -0500 Message-Id: <1133398937.66934.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Re: Restarting ntpd on address change X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ian_leroux@fastmail.fm List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 01:02:22 -0000 On Wed, 2005-11-30 at 10:55 -0800, Luke Dean wrote: > > On Tue, 29 Nov 2005, Ian D. Leroux wrote: > > I had > > added a line to my /etc/dhclient-exit-hooks to restart ntpd every time a > > new address was obtained: > > > > [...] > > This seemed work fine on 5.4, but on 6.0 it gives problems at boot. > > Specifically, I get repeated "bad file descriptor" errors after my > > network address is assigned, and running ps after the boot completes > > shows that there are two ntpd processes running. > > [...] > I needed to solve that same problem and came up with the same solution you > did. I saw it work under 5.4 several times when my ISP did maintenance on > my upstream router. I've kept the same setup under 6 and haven't noticed > any problems yet. I've been fortunate enough to keep my IP address leased > since my upgrade to 6, so I haven't truly tested this under 6. Eventually > my ISP will do something to make me lose my lease, and if I have any > problems then, I'll post. Thanks for the second opinions and the tricks. I'll give it another try when I have a moment and report back if anything interesting and reproducible happens. Cheers, Ian D. Leroux