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