From owner-freebsd-questions Fri Jan 24 2:35:41 2003 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 C40F637B401 for ; Fri, 24 Jan 2003 02:35:38 -0800 (PST) Received: from onyx.dublin.wbtsystems.com (onyx.dublin.wbtsystems.com [193.120.231.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AD7943ED8 for ; Fri, 24 Jan 2003 02:35:37 -0800 (PST) (envelope-from barry.byrne@wbtsystems.com) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated bits=0) by onyx.dublin.wbtsystems.com (8.12.7/8.12.7) with ESMTP id h0OAZSe1067716; Fri, 24 Jan 2003 10:35:28 GMT From: "Barry Byrne" To: "Danny Horne" , Subject: RE: Starting DHCPD Date: Fri, 24 Jan 2003 10:35:28 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <14615.192.168.48.232.1043403041.squirrel@officemail.clifftop.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-WBT-Authenticated-User: bb X-Scanned-By: MIMEDefang 2.29 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Danny: Create a script (/usr/local/etc/rc.d/dhcpd.sh something like this: --script starts below--- case "$1" in start) echo "Starting DHCP Server" /usr/sbin/dhcpd ;; stop) echo "Stopping DHCP Server" killall dhcpd ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0 --script ends above--- Make sure it is executable by root, ends in .sh and lives in /usr/local/etc/rc.d Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax: +353 1 478 5544 Email: barry.byrne@wbtsystems.com Web: www.wbtsystems.com > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Danny Horne > Sent: 24 January 2003 10:11 > To: freebsd-questions@FreeBSD.ORG > Subject: Starting DHCPD > > > Hi all, > > I'm making changes to my network which will require using my own > DHCP server. > It's all set up & ready to go, but I can't find any way of getting it to > start on boot up. > > There's nothing that I can find in /etc/defaults/rc.conf or > /etc/rc.conf, & > no startup scripts in /usr/local/etc/rc.d > > I've used this DHCP server before (have recently been using a > different one > on the network) so I know it can work, but just can't find any way of > starting it automatically. > > Thanks for all replies > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message