From owner-freebsd-questions Mon Jul 17 8:23:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from penguin.prod.itd.earthlink.net (penguin.prod.itd.earthlink.net [207.217.120.134]) by hub.freebsd.org (Postfix) with ESMTP id C65C737BCBA for ; Mon, 17 Jul 2000 08:23:47 -0700 (PDT) (envelope-from cjc@pool0737.cvx20-bradley.dialup.earthlink.net) Received: from pool0737.cvx20-bradley.dialup.earthlink.net (pool0737.cvx20-bradley.dialup.earthlink.net [209.179.252.227]) by penguin.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id IAA26230; Mon, 17 Jul 2000 08:23:36 -0700 (PDT) Received: (from cjc@localhost) by pool0355.cvx21-bradley.dialup.earthlink.net (8.9.3/8.9.3) id IAA00385; Mon, 17 Jul 2000 08:21:46 -0700 (PDT) Date: Mon, 17 Jul 2000 08:21:15 -0700 From: "Crist J. Clark" To: Lex Cc: freebsd-questions@FreeBSD.ORG Subject: Re: dhcp server error. Message-ID: <20000717082115.A158@dialin-client.earthlink.net> Reply-To: cjclark@alum.mit.edu References: <001101bfeeee$cf01ebe0$0200a8c0@hellraiser> <20000717111818.B18418@blacktrap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000717111818.B18418@blacktrap.net>; from lex@blacktrap.net on Mon, Jul 17, 2000 at 11:18:18AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 17, 2000 at 11:18:18AM +0200, Lex wrote: > On Sun, Jul 16, 2000 at 02:26:41AM -0400, dave wrote: > > Hello, > > I've got a slight error running dhcpd on fbsd 4.0. I'm running the command: > > /usr/local/sbin/dhcpd > > in my rc.conf file. I'm getting the error: > > dhcp: unable to bind to host address, address already in use. > > Exiting. > > Dhcpd is the only item loading in rc.conf dealing with my ethernet interface. The server itself appears to work properly this error is more annoying than anything else, has anyone seen it? > > Thanks. > > Dave. > > > > If the server works properly after the 'Exiting' message, my guess is you are > trying to launch it twice (the 'address already in use' message probably means > that too). I assume you meant rc.local and not rc.conf? Make sure that dhcpd > is not run from some other place (eg /usr/local/etc/rc.d). No, he meant he put a command in rc.conf since that would explain the error messages. To quote rc.conf(5), The purpose of rc.conf is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup scripts in /etc which conditionalize their internal actions according to the settings found there. DO NOT PUT COMMANDS IN rc.conf. rc.conf is not guaranteed to be sourced only once. It is also sourced by other system programs at times other than boot (e.g. periodic(8)). -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message