Hi /Programming/,
I'm building a .deb package for ipv6-enabled isc-dhcp 4 in Ubuntu jaunty, and am having a problem with my /etc/init.d file.
Specifically, I'm trying to pass the "-6" argument within the Start case, but start-stop-daemon appears to be ignoring it:
Code:
start-stop-daemon --start --quiet --pidfile $DHCPDPID \
--exec /usr/sbin/dhcpd -- -6 -q -pf $DHCPDPID -cf $CONFIG_FILE $INTERFACES
If I execute from the command line, dhcpd runs correctly with -6 mode enabled.
Code:
root@dhcp:/etc/default# /usr/sbin/dhcpd -6 -f -cf /etc/dhcp6/dhcpd.conf
Internet Systems Consortium DHCP Server 4.2.3-P2
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Bound to *:547
Listening on Socket/5/eth0/2604:5500:4:d600::/56
Sending on Socket/5/eth0/2604:5500:4:d600::/56
Any thoughts on how I can pass this argument correctly so that it is not ignored? I've tried loading the argument into an environment variable, and also editing the /etc/default/dhcpd file, both with no luck.
--Daniel