Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1600820 - Dhcrelay package update destroys config
Summary: Dhcrelay package update destroys config
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dhcp
Version: 7.5
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Pavel Zhukov
QA Contact: qe-baseos-daemons
Depends On:
TreeView+ depends on / blocked
Reported: 2018-07-13 06:32 UTC by John Cameron
Modified: 2018-07-15 17:15 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-07-15 17:15:59 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description John Cameron 2018-07-13 06:32:34 UTC
Description of problem: Dhcrelay package update destroys config

Version-Release number of selected component (if applicable): 4.2.5-68

How reproducible: Always

Steps to Reproduce:
1. vi /usr/lib/systemd/system/dhcrelay.service, add config
2. yum update dhcp
3. /usr/lib/systemd/system/dhcrelay.service replaced, config lost

Actual results:
Any config added directly in systemctl will be lost on package update

Expected results:
Config should be untouched on package update

Additional info:
Can be fixed by reverting to RHEL6 behavior, 
create config file and call from systemctl.

# /etc/sysconfig/dhcrelay

echo "# Command line options here
DHCRELAYARGS=" -i eth0.10 -i eth0.20"

# /usr/lib/systemd/system/dhcrelay.service

Description=DHCP Relay Agent Daemon

ExecStart=/usr/sbin/dhcrelay -d --no-pid $DHCRELAYARGS


Comment 2 Pavel Zhukov 2018-07-15 17:15:59 UTC
It is expected.
To modify unit files please change/create one under /etc/systemd/system directory.
Check for more information.

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