Date: Sun, 29 Jul 2001 23:46:40 -0400 (EDT) From: Olafur Gudmundsson <ogud@ogud.com> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/29317: No way to start dhcpd from rc.conf (and rc.network) Message-ID: <200107300346.f6U3kew58520@ogud.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107300346.f6U3kew58520>