]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
initscripts: dhcp: Tolerate running other dhcp servers
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 Nov 2025 14:39:27 +0000 (14:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Nov 2025 16:03:29 +0000 (16:03 +0000)
Some users have been trying to run multiple instances of the DHCP server
and restarting the main server won't work because the initscript refuses
to launch the process if there is another one with the same command.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/dhcp

index 826cd2dfe7ba91249d6b95ca1b31581c274bec26..05c809cabdf34dd8d5044cc38fb61ab47c42f64c 100644 (file)
@@ -52,7 +52,7 @@ case "$1" in
                fi
 
                boot_mesg "Starting DHCP Server..."
-               loadproc /usr/sbin/dhcpd -q ${LISTEN_INTERFACES}
+               loadproc -f /usr/sbin/dhcpd -q ${LISTEN_INTERFACES}
 
                # Start Unbound DHCP Lease Bridge unless RFC2136 is used
                if [ "${DNS_UPDATE_ENABLED}" != on ]; then