Commit 77f3cfa8 authored by Ad Schellevis's avatar Ad Schellevis

(filter) force a reload of filterdns when filter reloads, closes...

(filter) force a reload of filterdns when filter reloads, closes https://github.com/opnsense/core/issues/1396
parent e20efe33
......@@ -589,12 +589,9 @@ function filter_configure_sync($verbose = false)
}
}
}
killbypid('/var/run/filterdns.pid');
if (!empty($filterdns)) {
@file_put_contents('/var/etc/filterdns.conf', $filterdns);
if (isvalidpid('/var/run/filterdns.pid')) {
killbypid('/var/run/filterdns.pid', 'HUP');
} else {
/*
* FilterDNS has three debugging levels. The default choosen is 1.
* Availabe are level 2 and greater then 2.
......@@ -606,9 +603,6 @@ function filter_configure_sync($verbose = false)
}
mwexec("/usr/local/sbin/filterdns -p /var/run/filterdns.pid -i {$resolve_interval} -c /var/etc/filterdns.conf -d 1");
}
} else {
killbypid('/var/run/filterdns.pid');
}
update_filter_reload_status(gettext("Flushing schedule state"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment