From owner-freebsd-isp@FreeBSD.ORG Thu Jul 6 21:10:43 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F4A316A4E2 for ; Thu, 6 Jul 2006 21:10:43 +0000 (UTC) (envelope-from kwoody@citytel.net) Received: from mail.citytel.net (mail.citytel.net [209.145.111.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 418D543D49 for ; Thu, 6 Jul 2006 21:10:43 +0000 (GMT) (envelope-from kwoody@citytel.net) Received: from pop.citytel.net (pop.citytel.net [204.244.98.50]) by mail.citytel.net (Postfix) with ESMTP id 8A3A267EE2; Thu, 6 Jul 2006 14:10:42 -0700 (PDT) Date: Thu, 6 Jul 2006 14:10:42 -0700 (PDT) From: Keith Woodworth To: Brian Candler In-Reply-To: <20060706204119.GA33559@uk.tiscali.com> Message-ID: <20060706135732.B72198@pop.citytel.net> References: <20060705172226.I72183@pop.citytel.net> <20060706121716.GA32208@uk.tiscali.com> <20060706092851.D50369@pop.citytel.net> <20060706204119.GA33559@uk.tiscali.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-isp@freebsd.org Subject: Re: DHCP error. X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 21:10:43 -0000 On Thu, 6 Jul 2006, Brian Candler wrote: |->On Thu, Jul 06, 2006 at 09:42:29AM -0700, Keith Woodworth wrote: |-> |->/etc/rc.local does still exists though (well, you need to create it |->yourself, but if you do it is run at system startup time) Hmm, I thought it had gone away. |-> |->In the new world order, for isc-dhcpd installed from packages, all you do is |-> |->dhcpd_enable="YES" Yes, as Ive come to find. |->in rc.conf. All the scripts in /usr/local/etc/rc.d/* are run at bootup time, |->but they only start the daemon if they have a corresponding foo_enable="YES" |->in rc.conf. (Or _should_ ... maybe not all scripts have been converted over |->yet) I knew that, but I was not doing it right in this case and it was the cron job for save-entropy that was causing grief. |->It's just a shell script - you can read it. It saves state from the entropy |->gathering, so if the machine is rebooted it the random number generator |->doesn't start up in a predictable state. Knew it had something to do with that, just wasnt quite sure of the details. |->> I suppose I could just comment that line in cron but I'm not sure what |->> else it might break, nor do I want to as it was put there for a reason I'm |->> sure. :) |-> |->Other things run from cron, and you don't want those attempting to start |->dhcpd as different users either. The solution is to move your |->"/usr/sbin/dhcpd" command to /etc/rc.local Aye, that I will try now that I know. |->Yes if you are using ports, which have startup scripts in |->/usr/local/etc/rc.d/. However if you are using isc-dhcpd compiled from |->source, then rc.local is probably the right place, unless you put a suitable |->script in /usr/local/etc/rc.d/ |-> |->But this still doesn't explain the "permission denied" error you see if you |->start dhcpd as root (assuming you *are* trying to start it as root, that is) I do some stuff from ports, some from source, and now that I know for sure what to do that will fix that. As for the permission denied, that would show up in the dhcpd log every 11 minutes. :) Dhcpd was starting fine and running, but operator would try to start it again every 11 mins from cron. Its been running fine now since I got the rc.conf issue worked out. Thanks muchly for this. Keith