From owner-freebsd-current@FreeBSD.ORG Thu Jul 21 19:45:52 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CA0016A41F for ; Thu, 21 Jul 2005 19:45:52 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87E8143DA0 for ; Thu, 21 Jul 2005 19:45:47 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.33] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j6LJjio5031933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 21 Jul 2005 12:45:46 -0700 Message-ID: <42DFFB67.4020602@root.org> Date: Thu, 21 Jul 2005 12:45:43 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brooks Davis References: <42DF419C.90203@root.org> <20050721193617.GD17516@odin.ac.hmc.edu> In-Reply-To: <20050721193617.GD17516@odin.ac.hmc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: dhclient started twice on recent 7-current? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 19:45:52 -0000 Brooks Davis wrote: > On Wed, Jul 20, 2005 at 11:33:00PM -0700, Nate Lawson wrote: > >>When booting, dhclient is started just after "hostname". However, once >>devd starts, it tries to start dhclient again which fails with a message >>saying dhclient is already running. >> >>Here are the relevant sections from rc.conf: >>removable_interfaces="an0" >>ifconfig_fxp0="DHCP" >>ifconfig_an0="DHCP" >>hostname="mrspecial" >>devd_enable="YES" > > That's more or less by design. Dhclient needs to start when the link > comes up in order to work since it dies when the link goes down. It > also needs to start at startup because too many applications (sendmail > being the classic culprit) depend having an IP address configured. Any way to silence the "already running" error in the script run by devd? -- Nate