Dear Maintainer,
The init script tries to launch two parallel instances of dhcpd, one
each for ipv4 and ipv6, unless INTERFACESv4 or INTERFACESv6 is
specified. The man page says:
My system doesn't seem to require this. We can avoid a specification
which could become wrong if the environment changes.
the init script from trying to launch an instance for IPv6. That instance just
failed immediately, causing the init script to return failure.
Ultimately I modified the init script to respect two new variables:
IPV4ONLY and IPV6ONLY. I modified the "start" case to enter the
ipv4-only or ipv6-only behavior, respectively, if either is set.
INTERFACESv4 should still work, but specifying interfaces is no longer
mandatory.
isc-dhcp-server.patch - for /etc/init.d/isc-dhcp-server - is attached.
I changed some if/then keywords, slightly, to accommodate. Oh, the
status action seemed parallel to the start action, but missing a few
lines, so I added them. Let me know if that should be a separate patch,
or if it's a bad idea.
The outcome of specifying "OPTIONS=-4" was a failed instance of dhcpd, but that
makes sense given the structure of the init script.
The outcome of modifying the init script is a working server and
successful return codes from the init script.
I expected it to work because I'm awesome. Oh, I expected, originally, for the
init script to let me choose a protocol, since it seems to allow that, without
also forcing me to specify which interface(s) to use.