Since I want to add an IPv6 DHCP server (using ISC's dhcpd) additionally to run parallel to my IPv4 DHCP server on my Debian Jessie (systemd) box another instance of dhcpd
needs to be started but this time with the -6
parameter. I thought I would simply have a look at the current DHCP service. So
# systemctl -a | grep dhcp
isc-dhcp-server.service loaded active running LSB: DHCP server
shows a something that can be found at /run/systemd/generator.late/isc-dhcp-server.service
and is apparently a wrapper around the SysV-style script file /etc/init.d/isc-dhcp-server
.
So I thought I could just copy the SysV script, adapt it (replace every occurrence of dhcp
with dhcp6
except for the binary name) and then also copy the /run/systemd/generator.late/isc-dhcp-server.service
and adapt it to point to the new script and that's it but apparently I wasn't successful because systemctl -a | grep dhcp6
yields no results.
Also:
# sudo systemctl enable dhcp6.service
Failed to execute operation: No such file or directory
Any idea what I could've made wrong? Or how I could debug what I made wrong? Or is there any more comfortable and maybe less hackish way to clone a service?