summaryrefslogtreecommitdiffstats
path: root/ftp_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'ftp_wizard')
-rwxr-xr-xftp_wizard/Proftpd.pm6
1 files changed, 1 insertions, 5 deletions
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');
}