Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 188516 Details for
Bug 238277
net-misc/dhcp add init script multiplexing support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to enable ISC DHCP multiplexing (starting) - for IPv4 and IPv6 usage
dhcpd.patch (text/plain), 1.43 KB, created by
Mihai Moldovan
on 2009-04-16 01:13:59 UTC
(
hide
)
Description:
Patch to enable ISC DHCP multiplexing (starting) - for IPv4 and IPv6 usage
Filename:
MIME Type:
Creator:
Mihai Moldovan
Created:
2009-04-16 01:13:59 UTC
Size:
1.43 KB
patch
obsolete
>--- dhcpd.init 2007-04-02 14:35:53.000000000 +0200 >+++ dhcpd.init.new 2009-04-16 03:05:44.000000000 +0200 >@@ -3,7 +3,14 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init,v 1.5 2007/04/02 12:34:01 uberlord Exp $ > >-DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/dhcpd.conf} >+DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/${SVCNAME}.conf} >+if [ "$(sed 's/[^6]*//' <<< "${SVCNAME}")" == "6" ] ; then >+ DHCPD_OPTS="${DHCPD_OPTS} -6" >+ einfo "y" >+else >+ DHCPD_OPTS="${DHCPD_OPTS} -4" >+ einfo "n" >+fi > > depend() { > need net >@@ -33,7 +40,7 @@ > fi > > local leasefile="$(get_var lease-file-name)" >- leasefile="${DHCPD_CHROOT}/${leasefile:-/var/lib/dhcp/dhcpd.leases}" >+ leasefile="${DHCPD_CHROOT}/${leasefile:-/var/lib/dhcp/${SVCNAME}.leases}" > if [ ! -f "${leasefile}" ] ; then > ebegin "Creating ${leasefile}" > touch "${leasefile}" >@@ -48,13 +55,13 @@ > fi > > local pidfile="$(get_var pid-file-name)" >- pidfile="${pidfile:-/var/run/dhcp/dhcpd.pid}" >+ pidfile="${pidfile:-/var/run/dhcp/${SVCNAME}.pid}" > > ebegin "Starting ${DHCPD_CHROOT:+chrooted }${SVCNAME}" > start-stop-daemon --start --exec /usr/sbin/dhcpd \ > --pidfile "${DHCPD_CHROOT}/${pidfile}" \ > -- ${DHCPD_OPTS} -q -pf "${pidfile}" \ >- -user dhcp -group dhcp \ >+ -user dhcp -group dhcp -lf "${leasefile}" \ > ${DHCPD_CHROOT:+-chroot} ${DHCPD_CHROOT} ${DHCPD_IFACE} > eend $? \ > && save_options chroot "${DHCPD_CHROOT}" \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238277
:
165992
| 188516