Bug 625846 - Can't add extra arguments to dhcrelay daemon
Summary: Can't add extra arguments to dhcrelay daemon
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: dhcp
Version: 6.1
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jiri Popelka
QA Contact: Release Test Team
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-20 15:31 UTC by Jiri Popelka
Modified: 2011-05-19 14:04 UTC (History)
6 users (show)

(edit)
Previously, it was impossible to configure the dhcrelay service to run the dhcrelay daemon with additional arguments. With this update, a DHCRELAYARGS variable is available for the /etc/sysconfig/dhcrelay configuration file, which allows additional arguments to be passed to the dhcrelay daemon properly.
Clone Of:
(edit)
Last Closed: 2011-05-19 14:04:57 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0697 normal SHIPPED_LIVE dhcp bug fix and enhancement update 2011-05-18 18:10:16 UTC

Description Jiri Popelka 2010-08-20 15:31:46 UTC
+++ This bug was initially created as a clone of Bug #624965 +++

Description of problem:
In our network, we have to use the -a option for the dhcrelay daemon. Currently, I see no 'clean' way to achieve this: only the variables INTERFACES and DHCPSERVERS can be changed.

Version-Release number of selected component (if applicable):
dhcp-3.0.5-23.el5_5.1

How reproducible:
Always

Steps to Reproduce:
1. Try to add -a somewhere to /etc/sysconfig/dhcrelay, but you fail to do so.
  
Actual results:
dhcrelay agent running without -a

Expected results:
dhcrelay agent running with -a

Additional info:
As a workaround, we add '-a' sneakely to variable DHCPSERVERS in /etc/sysconfig/dhcrelay, for instance
  DHCPSERVERS="-a 10.120.3.250"

Other initscripts use a configurable variables for this situation: DHCPDARGS (dhcpd), SYSLOGD_OPTIONS (syslog), EXTRAOPTIONS (xinetd). That is my suggestion to fix this bug.

--- Additional comment from jpopelka@redhat.com on 2010-08-20 14:04:42 CEST ---

Variable EXTRAOPTIONS (for options other than -i) sounds good to me.

Comment 1 Jiri Popelka 2010-08-20 15:35:32 UTC
http://pkgs.fedoraproject.org/gitweb/?p=dhcp.git;a=commitdiff;h=1eb7b33d5572d8c8dc3230ae3204f674bee3ca42

Low priority because there's a workaround in 'sneakily' misusing the DHCPSERVERS variable.

Version-Release number of selected component (if applicable):
dhcp-4.1.1-11.P1.el6

Comment 5 Tomas Capek 2011-05-10 14:22:54 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, it was impossible to configure the dhcrelay service to run the dhcrelay daemon with additional arguments. With this update, a DHCRELAYARGS variable is available for the /etc/sysconfig/dhcrelay configuration file, which allows additional arguments to be passed to the dhcrelay daemon properly.

Comment 6 errata-xmlrpc 2011-05-19 14:04:57 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0697.html


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