From question@closedsrc.org  Wed Dec 25 18:28:29 2002
Return-Path: <question@closedsrc.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6065C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Dec 2002 18:28:29 -0800 (PST)
Received: from q.closedsrc.org (ip233.gte15.rb1.bel.nwlink.com [209.20.244.233])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DA1CF43EC2
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Dec 2002 18:28:25 -0800 (PST)
	(envelope-from question@closedsrc.org)
Received: by q.closedsrc.org (Postfix, from userid 1001)
	id B512753FF; Wed, 25 Dec 2002 18:28:14 -0800 (PST)
Message-Id: <20021226022814.B512753FF@q.closedsrc.org>
Date: Wed, 25 Dec 2002 18:28:14 -0800 (PST)
From: Linh Pham <question@closedsrc.org>
Reply-To: Linh Pham <question@closedsrc.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: DHCP server and relay startup and configuration
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46531
>Category:       conf
>Synopsis:       DHCP server and relay startup and configuration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 25 18:30:01 PST 2002
>Closed-Date:    Fri Dec 27 13:35:42 PST 2002
>Last-Modified:  Fri Dec 27 13:40:01 PST 2002
>Originator:     Linh Pham
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD q.closedsrc.org 4.7-STABLE FreeBSD 4.7-STABLE #5: Thu Dec 12 21:56:46 PST 2002 question@q.closedsrc.org:/usr/obj/usr/src/sys/Q i386
>Description:
Although ISC-DHCP is included in the base install of FreeBSD 4.x, I've noticed
that there is no facility in rc.conf to start up either the DHCP server nor
the relay agent, nor are there any example configuration files under /etc.

>How-To-Repeat:
Did a grep on /etc/defaults/rc.conf for the DHCP daemon and the relay agent
and found no entry for it, nor found dhcpd.conf under /etc.

>Fix:
I would like to propose adding the facilities to init and rc so that one can
start either the included DHCP server daemon and/or the relay agent by adding
lines to /etc/rc.conf. The variables could be something like:

dhcpd_enable="YES|NO"
dhcpd_flags=""
dhcpd_config="/etc/dhcpd.conf"

dhcrelay_enable="YES|NO"
dhcrelay_flags=""

Then add the necessary lines in /etc/rc.network to parse the variables and
start the daemon or the relay agent if enabled. Also, the ISC-DHCP port under
net/isc-dhcp3 installs an example dhcpd.conf file that the user can base a
the daemon's configuration on. The port also installs startup script examples
under /usr/local/etc and /usr/local/etc/rc.d that could be used as the basis
for the startup bits under /etc/rc.network.

I think this will reduce the need of having to install the port or even
require the person to figure out how to start the services and configure them
and lead to even more messages sent to -questions or -newbies.

>Release-Note:
>Audit-Trail:

From: Ceri Davies <setantae@submonkey.net>
To: Linh Pham <question@closedsrc.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: conf/46531: DHCP server and relay startup and configuration
Date: Thu, 26 Dec 2002 13:20:55 +0000

 On Wed, Dec 25, 2002 at 06:28:14PM -0800, Linh Pham wrote:
 
 > Although ISC-DHCP is included in the base install of FreeBSD 4.x, I've noticed
 > that there is no facility in rc.conf to start up either the DHCP server nor
 > the relay agent, nor are there any example configuration files under /etc.
 
 Only the client is included in the base system, dhcpd and dhcrelay are not.
 
 Ceri
 -- 
 By the fierce brothers of the Creator, your destruction is here!

From: Linh Pham <question@closedsrc.org>
To: Ceri Davies <setantae@submonkey.net>,
	FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/46531: DHCP server and relay startup and configuration
Date: Thu, 26 Dec 2002 07:19:35 -0800

 --J2SCkAp4GZ/dPZZf
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2002-12-26 13:20 +0000, Ceri Davies <setantae@submonkey.net> wrote:
 
 # Only the client is included in the base system, dhcpd and dhcrelay are no=
 t.
 
 Oops... is there a reason for it not being included in the base system?
 
 --=20
 Linh Pham                                         question@closedsrc.org
 Webmaster and FreeBSD Geek                          http://closedsrc.org
 Apprentice Manager Editor and Writer           http://www.daemonnews.org
 Courage: The things I do for love | And So Western Civilization Crumbles
 
 --J2SCkAp4GZ/dPZZf
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+Cx4HwhofDeWkDMIRAv3lAJ4nIbZZyMY61FIeEgCEucVHdQ2cewCfZ1KG
 VfK6hnEWiLY7OjkIemToEZc=
 =an+/
 -----END PGP SIGNATURE-----
 
 --J2SCkAp4GZ/dPZZf--
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Fri Dec 27 13:34:50 PST 2002 
State-Changed-Why:  
dhcpd and dhcrelay are not part of the base system, and therefore 
starting them out of rc.network is not practical. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46531 

From: Ceri Davies <setantae@submonkey.net>
To: Linh Pham <question@closedsrc.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: conf/46531: DHCP server and relay startup and configuration
Date: Fri, 27 Dec 2002 21:34:22 +0000

 On Thu, Dec 26, 2002 at 07:19:35AM -0800, Linh Pham wrote:
 > On 2002-12-26 13:20 +0000, Ceri Davies <setantae@submonkey.net> wrote:
 > 
 > # Only the client is included in the base system, dhcpd and dhcrelay are not.
 > 
 > Oops... is there a reason for it not being included in the base system?
 
 I'm not sure, but I suspect it's for the same reasons that there's no httpd
 in the base system.
 
 Ceri
 -- 
 In the name of my elders, the valiant brothers, and the forge!
>Unformatted:
