Your message dated Sun, 25 Oct 2015 07:34:48 +0000
with message-id <[email protected]>
and subject line Bug#592539: fixed in isc-dhcp 4.3.3-6
has caused the Debian Bug report #592539,
regarding isc-dhcp-server: DHCPv6 server difficult to start / cohabit with 
DHCPv4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
592539: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592539
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: isc-dhcp-server
Version: 4.1.1-P1-15
Severity: normal

It appears to me like it's pretty hard to install isc-dhcp and set it
up according to the type of server one wants to use; e.g. setting it
up as a DHCPv6 server specifically, or having a DHCPv6 server
alongside a DHCPv4 server.

I think a little more could be done to facilitate such setups and
avoid people editing the isc-dhcp-server init script (and potentially
losing their changes in an update).

It's far from ideal I realize, but attached is a patch which attempts
to make this a little simpler: setting up a DHCPv6 server from there
is a matter of symlinking the init script or copying it to a new name
and editing a file /etc/default/<basename_of_init_script>. Setting up
the mode of the server (to serve v4 or v6 addresses) is set as an
additional option in that file.

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-12-generic (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Mathieu Trudel-Lapierre <[email protected]>
Freenode: cyphermox, Jabber: [email protected]
4096R/EE018C93 1967 8F7D 03A1 8F38 732E  FF82 C126 33E1 EE01 8C93
=== modified file 'debian/isc-dhcp-server.init.d'
--- debian/isc-dhcp-server.init.d	2010-11-09 17:40:49 +0000
+++ debian/isc-dhcp-server.init.d	2011-02-01 21:40:42 +0000
@@ -15,11 +15,12 @@
 ### END INIT INFO
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
+DEFAULTS_FILE=/etc/default/`basename $0`
 
 test -f /usr/sbin/dhcpd || exit 0
 
 # It is not safe to start if we don't have a default configuration...
-if [ ! -f /etc/default/isc-dhcp-server ]; then
+if [ ! -f $DEFAULTS_FILE ]; then
 	echo "/etc/default/isc-dhcp-server does not exist! - Aborting..."
 	echo "Run 'dpkg-reconfigure isc-dhcp-server' to fix the problem."
 	exit 0
@@ -28,8 +29,8 @@
 . /lib/lsb/init-functions
 
 # Read init script configuration (so far only interfaces the daemon
-# should listen on.)
-[ -f /etc/default/isc-dhcp-server ] && . /etc/default/isc-dhcp-server
+# should listen on and DHCP mode (v4 or v6).)
+[ -f $DEFAULTS_FILE ] && . $DEFAULTS_FILE
 
 NAME=dhcpd
 DESC="ISC DHCP server"
@@ -37,10 +38,10 @@
 
 test_config()
 {
-	if ! /usr/sbin/dhcpd -t -q > /dev/null 2>&1; then
+	if ! /usr/sbin/dhcpd $DHCPMODE -t -q > /dev/null 2>&1; then
 		echo "dhcpd self-test failed. Please fix the config file."
 		echo "The error was: "
-		/usr/sbin/dhcpd -t
+		/usr/sbin/dhcpd $DHCPMODE -t
 		exit 1
 	fi
 }
@@ -66,7 +67,7 @@
 		test_config
 		log_daemon_msg "Starting $DESC" "$NAME"
 		start-stop-daemon --start --quiet --pidfile $DHCPDPID \
-			--exec /usr/sbin/dhcpd -- -q $INTERFACES
+			--exec /usr/sbin/dhcpd -- $DHCPMODE -q $INTERFACES
 		sleep 2
 
 		if check_status -q; then

=== modified file 'debian/isc-dhcp-server.postinst'
--- debian/isc-dhcp-server.postinst	2010-11-09 17:40:49 +0000
+++ debian/isc-dhcp-server.postinst	2011-02-01 21:40:42 +0000
@@ -43,6 +43,11 @@
 # This is a POSIX shell fragment
 #
 
+# DHCP mode to use:
+#  -4  -  standard IPv4 DHCP (default)
+#  -6  -  DHCPv6
+DHCPMODE="-4"
+
 # On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
 #	Separate multiple interfaces with spaces, e.g. "eth0 eth1".
 INTERFACES=""
@@ -82,6 +87,12 @@
 	fi
 fi
 
+# ISC DHCP 4 introduces DHCPv6. That also means we need to ship an extra
+# lease file.
+if [ ! -e /var/lib/dhcp/dhcpd6.leases ]; then
+	touch /var/lib/dhcp/dhcpd6.leases
+fi
+
 [ -x /sbin/restorecon ] && restorecon /var/lib/dhcp/dhcpd.leases
 
 init_script_error_handler()

=== modified file 'debian/isc-dhcp-server.postrm'
--- debian/isc-dhcp-server.postrm	2010-06-15 23:20:30 +0000
+++ debian/isc-dhcp-server.postrm	2011-02-01 21:40:42 +0000
@@ -12,6 +12,7 @@
     purge)
 	# Remove database
 	rm -f /var/lib/dhcp/dhcpd.leases /var/lib/dhcp/dhcpd.leases~
+	rm -f /var/lib/dhcp/dhcpd6.leases /var/lib/dhcp/dhcpd6.leases~
 
 	# Remove database directory
 	if [ -d /var/lib/dhcp ]; then


--- End Message ---
--- Begin Message ---
Source: isc-dhcp
Source-Version: 4.3.3-6

We believe that the bug you reported is fixed in the latest version of
isc-dhcp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Gilbert <[email protected]> (supplier of updated isc-dhcp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 04 Oct 2015 03:24:47 +0000
Source: isc-dhcp
Binary: isc-dhcp-server isc-dhcp-dbg isc-dhcp-server-ldap isc-dhcp-common 
isc-dhcp-dev isc-dhcp-client isc-dhcp-client-ddns isc-dhcp-client-udeb 
isc-dhcp-relay
Architecture: source
Version: 4.3.3-6
Distribution: experimental
Urgency: medium
Maintainer: Debian ISC DHCP maintainers <[email protected]>
Changed-By: Michael Gilbert <[email protected]>
Description:
 isc-dhcp-client - DHCP client for automatically obtaining an IP address
 isc-dhcp-client-ddns - Dynamic DNS (DDNS) enabled DHCP client
 isc-dhcp-client-udeb - ISC DHCP Client for debian-installer (udeb)
 isc-dhcp-common - common files used by all of the isc-dhcp packages
 isc-dhcp-dbg - ISC DHCP server for automatic IP address assignment (debuging 
sym
 isc-dhcp-dev - API for accessing and modifying the DHCP server and client state
 isc-dhcp-relay - ISC DHCP relay daemon
 isc-dhcp-server - ISC DHCP server for automatic IP address assignment
 isc-dhcp-server-ldap - DHCP server that uses LDAP as its backend
Closes: 592539 684009
Changes:
 isc-dhcp (4.3.3-6) experimental; urgency=medium
 .
   * Fix missing build flags from the last upload.
   * Support IPv6 in the server init script (closes: #592539).
     - Thanks to Florent Fourcot and Ron Murray.
   * Don't assume an IPv6 prefix length of 64 (closes: #684009).
     - Thanks to Arne Nordmark.
Checksums-Sha1:
 07d021fc5d8e69509c9261320a2dcebf8c6be6e9 3294 isc-dhcp_4.3.3-6.dsc
 ff78fe9644d1e2bb63de1bee13774a7f586527ba 81896 isc-dhcp_4.3.3-6.debian.tar.xz
Checksums-Sha256:
 ac8e03f46ee811ebf99b8b0cde4ef2e342d077099b302d2806eed6b3e73f65b8 3294 
isc-dhcp_4.3.3-6.dsc
 3422490b0bf74d1be87fe5a9596f1bc01420fe5f2fe217cab20d095a3a5cf6cc 81896 
isc-dhcp_4.3.3-6.debian.tar.xz
Files:
 1048b22bebfb55310a4b59ee30d1ea2e 3294 net important isc-dhcp_4.3.3-6.dsc
 ab48c331e0c003e0463d1ad3c90c1ff9 81896 net important 
isc-dhcp_4.3.3-6.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQQcBAEBCgAGBQJWLIVLAAoJELjWss0C1vRz3FYf/RESaCWCu40MDur8C/25fS82
aSblkbZ45/iHQpMSU1fwEaTYy7SDFyVI/8Ju4hqGG30rQRMfbv8n1BoFtPsspPxy
EmNv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