summaryrefslogtreecommitdiffstats
path: root/client_wizard/Bind_client.pm
diff options
context:
space:
mode:
Diffstat (limited to 'client_wizard/Bind_client.pm')
-rwxr-xr-xclient_wizard/Bind_client.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/client_wizard/Bind_client.pm b/client_wizard/Bind_client.pm
index fc3ddc2a..4770dfd1 100755
--- a/client_wizard/Bind_client.pm
+++ b/client_wizard/Bind_client.pm
@@ -176,11 +176,7 @@ sub do_it {
print NEW "\n$dc IN PTR $o->{var}{client_name}. ; $date\n\n";
close(NEW) or die "can not close $file";
up_serial($file);
- if (services::is_service_running('named')) {
- services::restart('named');
- } else {
- services::start('named');
- }
+ services::restart_or_start('named');
}
sub new {