Commit 2c045731 authored by Franco Fichtner's avatar Franco Fichtner

unbound: fix xmlrpc sync splatter during boot

This is the proper way to handle bootup output for the
console: request it and don't output ever time it's called
during boot....
parent 015c5d00
......@@ -1916,21 +1916,21 @@ function services_dnsmasq_configure($dhcp_reload = true)
}
}
function services_unbound_configure($dhcp_reload = true)
function services_unbound_configure($dhcp_reload = true, $verbose = false)
{
global $config;
killbypid('/var/run/unbound.pid', 'TERM', true);
if (isset($config['unbound']['enable'])) {
if (file_exists("/var/run/booting")) {
echo gettext("Starting DNS Resolver...");
if ($verbose) {
echo "Starting DNS Resolver...";
}
sync_unbound_service();
if (file_exists("/var/run/booting")) {
echo gettext("done.") . "\n";
if ($verbose) {
echo "done.\n";
}
}
......
......@@ -191,7 +191,7 @@ system_routing_enable();
services_dnsmasq_configure(false);
/* start unbound service */
services_unbound_configure(false);
services_unbound_configure(false, true);
/* Do an initial time sync */
echo "Starting NTP time client...";
......
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