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() --- ftp_wizard/Proftpd.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ftp_wizard') diff --git a/ftp_wizard/Proftpd.pm b/ftp_wizard/Proftpd.pm index 2c2fd2fd..90354a45 100755 --- a/ftp_wizard/Proftpd.pm +++ b/ftp_wizard/Proftpd.pm @@ -323,11 +323,7 @@ sub do_it { add_options($cle, $val); } - if (services::is_service_running('proftpd')) { - services::restart('proftpd'); - } else { - services::start('proftpd'); - } + services::restart_or_start('proftpd'); check_started('proftpd'); } -- cgit v1.2.1