Bug 41050 - request for /etc/sysconfig/dhcpd
Summary: request for /etc/sysconfig/dhcpd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: dhcp
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-17 03:35 UTC by Ian Mortimer
Modified: 2007-04-18 16:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-16 13:39:17 UTC
Embargoed:


Attachments (Terms of Use)
Patch to add sysconfig configuration to dhcpd startup (1.06 KB, patch)
2001-05-17 03:38 UTC, Ian Mortimer
no flags Details | Diff

Description Ian Mortimer 2001-05-17 03:35:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
dhcpd can take a number of command line options the most useful of which is
the interface you want it to listen on.  At  present the only way to
specify any options is to edit /etc/init.d/dhcpd which is not desirable. 

The patch included modifies /etc/init.d/dhcpd to source
/etc/sysconfig/dhcpd and set command line arguments accordingly.  Also
included is a sample dhcpd sysconfig file.

How reproducible:
Always

Steps to Reproduce:
1. Not applicable
2.
3.
	

Additional info:

Comment 1 Ian Mortimer 2001-05-17 03:38:28 UTC
Created attachment 18710 [details]
Patch to add sysconfig configuration to dhcpd startup

Comment 2 Ian Mortimer 2001-05-17 03:46:25 UTC
Bugzilla didn't let me add the second attachment which was supposed to be the
example sysconfig file.  Here it is (entries should be self explanatory):

#PORT=67
#CFFILE=/etc/dhcpd.conf
#LEASEFILE=/var/lib/dhcp/dhcpd.leases
#QUIET=NO
#INTERFACES=''
INTERFACES='eth1'

Comment 3 Mike Chambers 2001-06-27 11:33:32 UTC
Shouldn't the install of dhcp also include a dhcp.conf file in /etc 
or /etc/dhcp/?  What happens if you upgrade does it keep the current?  Wouldn't 
it also need to add the default as .rpmnew or .rpmsave but do it in one of the 
above directories or in a nice easy location instead of hunting it down and 
having to edit /etc/init.d/dhcpd to reflect that?

I haven't used it myself but always asked where it is but could never find it.

Comment 4 Michael Schwendt 2001-06-27 12:01:48 UTC
Reporter: One way to add another attachment is to GO BACK to the bug page. Right
above the comments field is the 'Attachments' menu.

Comment 5 Mikkel L. Ellertson 2001-06-27 14:45:52 UTC
It would be nice if, as part of the post install script, the RPM would touch the
dhcpd.leases file, so that if there isn't one, it will be created.  The
documentation with the package does not indicate that you have to create the
file, and if you are upgrading from an older version, the location changed.  So
you can go from a working dhcpd setup to a broken setup  by doing an upgrade. 
The same /etc/dhcpd.conf file will work.

Comment 6 Elliot Lee 2001-12-28 18:50:35 UTC
The dhcp-3.0-2 package in rawhide (and in fact earlier dhcp packages) allow you
to specify DHCPDARGS=... in /etc/sysconfig/dhcpd, so you can pass as many args
as you like without having to add support for them to the initscript. I think
this meets your requirement....

There is no /etc/dhcp.conf by default because configuration is absolutely
required for the daemon to be of any use.


Note You need to log in before you can comment on or make changes to this bug.