From eb64c359160ff12640e4d5b498342ae334013b2b Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Sat, 15 Feb 2014 10:42:59 +0100 Subject: [PATCH] Fixed: FS#2960 - Bind9 zone reload fails --- server/plugins-available/bind_plugin.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/plugins-available/bind_plugin.inc.php b/server/plugins-available/bind_plugin.inc.php index 4823cf3c2..0f2afaf47 100644 --- a/server/plugins-available/bind_plugin.inc.php +++ b/server/plugins-available/bind_plugin.inc.php @@ -156,8 +156,12 @@ class bind_plugin { if(is_file($filename.'.err')) unlink($filename.'.err'); } - //* Reload bind nameserver - $app->services->restartServiceDelayed('bind', 'reload'); + //* Restart bind nameserver if update_acl is not empty, otherwise reload it + if($data['new']['update_acl'] != '') { + $app->services->restartServiceDelayed('bind', 'restart'); + } else { + $app->services->restartServiceDelayed('bind', 'reload'); + } } -- GitLab