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) ...@@ -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; global $config;
killbypid('/var/run/unbound.pid', 'TERM', true); killbypid('/var/run/unbound.pid', 'TERM', true);
if (isset($config['unbound']['enable'])) { if (isset($config['unbound']['enable'])) {
if (file_exists("/var/run/booting")) { if ($verbose) {
echo gettext("Starting DNS Resolver..."); echo "Starting DNS Resolver...";
} }
sync_unbound_service(); sync_unbound_service();
if (file_exists("/var/run/booting")) { if ($verbose) {
echo gettext("done.") . "\n"; echo "done.\n";
} }
} }
......
...@@ -191,7 +191,7 @@ system_routing_enable(); ...@@ -191,7 +191,7 @@ system_routing_enable();
services_dnsmasq_configure(false); services_dnsmasq_configure(false);
/* start unbound service */ /* start unbound service */
services_unbound_configure(false); services_unbound_configure(false, true);
/* Do an initial time sync */ /* Do an initial time sync */
echo "Starting NTP time client..."; 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