mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
unbound: improve restart experience by waiting for pid to be ready
OpenVPN uses a similar trick already.
This commit is contained in:
parent
a59f8666a2
commit
e2b7cdae45
@ -378,6 +378,8 @@ function unbound_configure_do($verbose = false, $unused = '')
|
||||
|
||||
mwexecf_bg('/usr/local/bin/flock -n -E 0 -o /tmp/unbound_start.lock /usr/local/opnsense/scripts/unbound/start.sh %s', [$domain]);
|
||||
|
||||
waitforpid('/var/run/unbound.pid', 10);
|
||||
|
||||
service_log("done.\n", $verbose);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user