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/dhcp/files/dhcrelay.rc6 | |
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/dhcp/files/dhcrelay.rc6')
-rw-r--r-- | net-misc/dhcp/files/dhcrelay.rc6 | 11 |
1 files changed, 8 insertions, 3 deletions
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 $? } |