From owner-freebsd-bugs Sun Jul 29 20:50:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3C8E037B405 for ; Sun, 29 Jul 2001 20:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6U3o2q04003; Sun, 29 Jul 2001 20:50:02 -0700 (PDT) (envelope-from gnats) Received: from ogud.com (208-59-114-172.c3-0.129-ubr1.lnh-129.md.cable.rcn.com [208.59.114.172]) by hub.freebsd.org (Postfix) with ESMTP id AB23137B401 for ; Sun, 29 Jul 2001 20:46:59 -0700 (PDT) (envelope-from ogud@ogud.com) Received: (from ogud@localhost) by ogud.com (8.11.3/8.11.2) id f6U3kew58520; Sun, 29 Jul 2001 23:46:40 -0400 (EDT) (envelope-from ogud) Message-Id: <200107300346.f6U3kew58520@ogud.com> Date: Sun, 29 Jul 2001 23:46:40 -0400 (EDT) From: Olafur Gudmundsson Reply-To: ogud@ogud.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/29317: No way to start dhcpd from rc.conf (and rc.network) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29317 >Category: conf >Synopsis: No way to start dhcpd from rc.conf (and rc.network) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jul 29 20:50:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Olafur Gudmundsson >Release: FreeBSD 4.3-RELEASE i386 >Organization: >Environment: System: FreeBSD hlid.dc.ogud.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Jul 5 12:58:49 EDT 2001 ogud@hlid.dc.ogud.com:/usr/src/sys/compile/Gatt.01 i386 >Description: Standard FreeBSD-4.3 does not install dhcpd program and even after one is installed via ports or packages, there is no prototype in rc.defaults to start one with or block in rc.network to execute the startup. >How-To-Repeat: start dhcpd, configure a guest machine from dhcpd reboot, try to reconfigure the guest machine it hangs while waiting for dhcpd. >Fix: Attached is are the patches to /etc/default/rc.default and /etc/rc.network that allow me to have dhcpd start up on boot. --- etc/defaults/rc.conf Sun Jun 17 00:20:40 2001 +++ /etc/defaults/rc.conf Sun Jul 29 23:34:16 2001 @@ -153,6 +153,8 @@ sshd_enable="NO" # Enable sshd sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one. sshd_flags="" # Additional flags for sshd. +dhcpd_enable="NO" # Set to YES to start dhcpd server +dhcpd_flags="" # Additional flags for dhcpd ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). --- etc/rc.network Tue Mar 6 10:28:51 2001 +++ /etc/rc.network Sun Jul 29 23:34:10 2001 @@ -720,6 +720,12 @@ ;; esac + case ${dhcpd_enable} in + [Yy][Ee][Ss]) + echo -n ' dhcpd'; dhcpd ${dhcpd_flags} + ;; + esac + echo '.' network_pass3_done=YES } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message