diff options
Diffstat (limited to 'client_wizard/Bind_client.pm')
-rwxr-xr-x | client_wizard/Bind_client.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/client_wizard/Bind_client.pm b/client_wizard/Bind_client.pm index f37fed2e..b6c47232 100755 --- a/client_wizard/Bind_client.pm +++ b/client_wizard/Bind_client.pm @@ -167,11 +167,7 @@ sub do_it { MDK::Common::cp_af($file, $file . ".orig"); append_to_file($file, "\n$dc IN PTR $o->{var}{client_name}. ; $date\n\n"); up_serial($file); - if (services::is_service_running('named')) { - services::restart('named'); - } else { - services::start('named'); - } + services::restart_or_start('named'); } sub new { |