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.
This commit is contained in:
Franco Fichtner 2022-08-02 08:21:18 +02:00
parent 8974c4661a
commit 7aaa6a263b
3 changed files with 2 additions and 2 deletions

View File

@ -464,8 +464,6 @@ function system_hosts_generate($verbose = false)
file_put_contents('/etc/hosts', $hosts);
plugins_configure('hosts');
if ($verbose) {
echo "done.\n";
}

View File

@ -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');

View File

@ -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');