From 7aaa6a263b1351f74408038dd8d339e7deb4aafa Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 2 Aug 2022 08:21:18 +0200 Subject: [PATCH] system: do not reload unbound/dnsmasq "hosts" by default Number of people noted spurious restarts of Unbound and this seems to be the cause. However, the real cause of hammering rc.newwanip is in 797c18641944 and to avoid other side effects like the GIF/GRE stuff we should consider reverting part of it. --- src/etc/inc/system.inc | 2 -- src/www/services_dhcp.php | 1 + src/www/services_dhcpv6.php | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 197260692..917e83d4c 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -464,8 +464,6 @@ function system_hosts_generate($verbose = false) file_put_contents('/etc/hosts', $hosts); - plugins_configure('hosts'); - if ($verbose) { echo "done.\n"; } diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php index 099a1d42f..85c8429b3 100644 --- a/src/www/services_dhcp.php +++ b/src/www/services_dhcp.php @@ -49,6 +49,7 @@ function validate_partial_mac_list($maclist) function reconfigure_dhcpd() { system_hosts_generate(); + plugins_configure('hosts'); clear_subsystem_dirty('hosts'); dhcpd_dhcp4_configure(); clear_subsystem_dirty('staticmaps'); diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php index 679b35705..8174e9edb 100644 --- a/src/www/services_dhcpv6.php +++ b/src/www/services_dhcpv6.php @@ -37,6 +37,7 @@ require_once("plugins.inc.d/dhcpd.inc"); function reconfigure_dhcpd() { system_hosts_generate(); + plugins_configure('hosts'); clear_subsystem_dirty('hosts'); dhcpd_dhcp6_configure(); clear_subsystem_dirty('staticmaps');