From 0063b16b3ed2328f5d10e5c09edef25c757bee44 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 15 Feb 2025 16:47:31 +0100 Subject: [PATCH] dnsmasq: migrate to MVC/API, make sure service is reachable when still running and disabled so we can kill it, although not a new issue, better fix it for https://github.com/opnsense/core/issues/7905 --- src/etc/inc/plugins.inc.d/dnsmasq.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/plugins.inc.d/dnsmasq.inc b/src/etc/inc/plugins.inc.d/dnsmasq.inc index 261de9ddc..8c17728da 100644 --- a/src/etc/inc/plugins.inc.d/dnsmasq.inc +++ b/src/etc/inc/plugins.inc.d/dnsmasq.inc @@ -51,7 +51,7 @@ function dnsmasq_services() $services = []; - if (!dnsmasq_enabled()) { + if (!dnsmasq_enabled() && !isvalidpid('/var/run/dnsmasq.pid')) { return $services; }