From owner-freebsd-bugs Wed Dec 25 18:30: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 273BA37B405 for ; Wed, 25 Dec 2002 18:30:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F51943ED4 for ; Wed, 25 Dec 2002 18:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBQ2U2NS018417 for ; Wed, 25 Dec 2002 18:30:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBQ2U2Lw018416; Wed, 25 Dec 2002 18:30:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6065C37B401 for ; 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 ; 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 Reply-To: Linh Pham To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/46531: DHCP server and relay startup and configuration 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: 46531 >Category: conf >Synopsis: DHCP server and relay startup and configuration >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 18:30:01 PST 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message