Bug #7326 » unbound.patch
| /etc/inc/services.inc 2017-02-25 19:17:35.874341000 +0000 | ||
|---|---|---|
|
// kill any running Unbound instance
|
||
|
if (file_exists("{$g['varrun_path']}/unbound.pid")) {
|
||
|
sigkillbypid("{$g['varrun_path']}/unbound.pid", "TERM");
|
||
|
sleep(5);
|
||
|
}
|
||
|
|
||
|
if (isset($config['unbound']['enable'])) {
|
||
|
$stop_cmd = "/usr/sbin/chroot -u unbound -g unbound / /usr/local/sbin/unbound-control -c /var/unbound/unbound.conf";
|
||
|
mwexec($stop_cmd);
|
||
|
if (platform_booting()) {
|
||
|
echo gettext("Starting DNS Resolver...");
|
||
|
} else {
|
||