diff options
author | Max Kalika <max@gentoo.org> | 2004-12-20 19:21:39 +0000 |
---|---|---|
committer | Max Kalika <max@gentoo.org> | 2004-12-20 19:21:39 +0000 |
commit | 8ad677f31b41b34c1e49a1197e7067c2c2065b01 (patch) | |
tree | f6b8128bd0849baad371e485261790be27187cc8 /net-misc | |
parent | (#75067) SSE3 is also broken on gcc 3.4, so append -mno-sse3. (Manifest recom... (diff) | |
download | gentoo-2-8ad677f31b41b34c1e49a1197e7067c2c2065b01.tar.gz gentoo-2-8ad677f31b41b34c1e49a1197e7067c2c2065b01.tar.bz2 gentoo-2-8ad677f31b41b34c1e49a1197e7067c2c2065b01.zip |
Fix dhcrelay startup script for proper commandline arguments and proper shutdown pidfile. Fixes bug #48207.
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/dhcp/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcrelay.conf | 4 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcrelay.rc6 | 11 |
3 files changed, 15 insertions, 6 deletions
diff --git a/net-misc/dhcp/ChangeLog b/net-misc/dhcp/ChangeLog index be7f61d42f48..70f08e510c67 100644 --- a/net-misc/dhcp/ChangeLog +++ b/net-misc/dhcp/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/dhcp # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/ChangeLog,v 1.47 2004/12/20 18:54:23 max Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/ChangeLog,v 1.48 2004/12/20 19:21:39 max Exp $ + + 20 Dec 2004; <max@gentoo.org> files/dhcrelay.conf, files/dhcrelay.rc6: + Fix dhcrelay startup script for proper commandline arguments and proper + shutdown pidfile. Fixes bug #48207. *dhcp-3.0.1-r1 (20 Dec 2004) diff --git a/net-misc/dhcp/files/dhcrelay.conf b/net-misc/dhcp/files/dhcrelay.conf index 5872747867c8..2b7f91a39efe 100644 --- a/net-misc/dhcp/files/dhcrelay.conf +++ b/net-misc/dhcp/files/dhcrelay.conf @@ -1,13 +1,13 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcrelay.conf,v 1.3 2004/07/14 23:56:54 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcrelay.conf,v 1.4 2004/12/20 19:21:39 max Exp $ # Configure which interface or interfaces to for dhcp to listen on # list all interfaces space separated. IFACE="eth0" # Insert any other options needed. See dhcrelay(8) for details. -DHCRELAY_OPTS="" +DHCRELAY_OPTS="-q" # Space separated list of IPs to forward BOOTP/DHCP packets to. DHCRELAY_SERVERS="" diff --git a/net-misc/dhcp/files/dhcrelay.rc6 b/net-misc/dhcp/files/dhcrelay.rc6 index d1abe093c23f..f7abb69e06c9 100644 --- a/net-misc/dhcp/files/dhcrelay.rc6 +++ b/net-misc/dhcp/files/dhcrelay.rc6 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcrelay.rc6,v 1.4 2004/07/14 23:56:54 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcrelay.rc6,v 1.5 2004/12/20 19:21:39 max Exp $ depend() { need net @@ -9,15 +9,20 @@ depend() { } start() { + local IFACES="" + for i in ${IFACE} ; do + IFACES="${IFACES} -i ${i}" + done + ebegin "Starting dhcrelay" start-stop-daemon --start --quiet --exec /usr/sbin/dhcrelay \ - -- -q -i ${IFACE} ${DHCRELAY_OPTS} \ + -- ${IFACES} ${DHCRELAY_OPTS} \ ${DHCRELAY_SERVERS} eend $? } stop() { ebegin "Stopping dhcrelay" - start-stop-daemon --stop --quiet --pidfile /var/run/dhcp/dhcrelay.pid + start-stop-daemon --stop --quiet --pidfile /var/run/dhcrelay.pid eend $? } |