dhcp: appreciate the details but better for a commit message here

This commit is contained in:
Franco Fichtner 2025-01-08 11:19:20 +01:00
parent d1965a5cdd
commit 99b2480dd5

View File

@ -1583,10 +1583,6 @@ EOD;
if (count($dhcpdv6ifs) > 0) {
mwexec('/usr/local/sbin/dhcpd -6 -user dhcpd -group dhcpd -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid ' . join(' ', $dhcpdv6ifs));
# The -m0 parameter prevents the script keeping a pipe connection open
# to the daemon parent process, which can cause restart failures, due to
# the sleep process running for longer than the shell script.
mwexecf('/usr/sbin/daemon -m0 -f -p %s %s', ['/var/run/dhcpleases6.pid', '/usr/local/opnsense/scripts/dhcp/prefixes.sh']);
}