unbound: background potentially long-running operation

This commit is contained in:
Stephan de Wit 2022-02-17 14:36:39 +01:00 committed by Franco Fichtner
parent 12128947d7
commit 6a2f45af2c

View File

@ -416,7 +416,7 @@ function unbound_configure_do($verbose = false, $interface = '')
flush();
}
mwexec('/usr/local/bin/flock -n -E 0 -o /tmp/unbound_start.lock /usr/local/opnsense/scripts/unbound/start.sh');
mwexec_bg('/usr/local/bin/flock -n -E 0 -o /tmp/unbound_start.lock /usr/local/opnsense/scripts/unbound/start.sh');
if (isset($config['unbound']['regdhcp'])) {
$domain = $config['system']['domain'];