Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 33895

Summary: dhcrelay does not have an init script but should have one
Product: Gentoo Linux Reporter: Martin Jackson (RETIRED) <mjolnir>
Component: New packagesAssignee: Max Kalika (RETIRED) <max>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: initscript for dhcrelay
Conf file for /etc/conf.d for dhcrelay init script

Description Martin Jackson (RETIRED) gentoo-dev 2003-11-19 21:08:36 UTC
dhcrelay does not have an init script but should - otherwise it will have to be
started manually

I suggest including a config file in /etc/conf.d as well to pass command line
args to dhcrelay

Note that dhcpd and dhcrelay may conflict but don't have to (e.g. if dhcrelay is
running on eth1 and dhcpd is running on eth0)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Jackson (RETIRED) gentoo-dev 2003-11-20 20:00:55 UTC
Created attachment 21015 [details]
initscript for dhcrelay

This is what I think is a fairly reasonable init script for dhcrelay.  It does
not support chroot or dropping root, so those options have been removed vis a
vis the dhcp init script.

I have tested it on my system.

I will also send along a conf file for /etc/conf.d
Comment 2 Martin Jackson (RETIRED) gentoo-dev 2003-11-20 20:03:01 UTC
Created attachment 21016 [details]
Conf file for /etc/conf.d for dhcrelay init script

Here is the accompanying conf file.  The relay servers variable has to be
populated for the script to start correctly.
Comment 3 Max Kalika (RETIRED) gentoo-dev 2004-01-14 17:05:17 UTC
Committed as dhcp-3.02_p2-r3.  Any reason it doesn't work as the dhcp user?