From 108c9ad989aeeff143bebf230946a50ae5e8ae3e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 17 Oct 2012 17:18:40 +0000 Subject: do not reinvent services::restart_or_start() --- dns_wizard/Bind.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'dns_wizard') diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm index 77eed5bf..3bd71e8b 100644 --- a/dns_wizard/Bind.pm +++ b/dns_wizard/Bind.pm @@ -822,12 +822,7 @@ sub end_it { save_old_config(); # copy in correct place copy_good(); - # start or restart the service - if (services::is_service_running('named')) { - services::restart('named'); - } else { - services::start('named'); - } + services::restart_or_start('named'); } sub do_it_master { -- cgit v1.2.1