summaryrefslogtreecommitdiffstats
path: root/sshd_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'sshd_wizard')
-rwxr-xr-xsshd_wizard/Sshd.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/sshd_wizard/Sshd.pm b/sshd_wizard/Sshd.pm
index cfffc9a2..cac703d8 100755
--- a/sshd_wizard/Sshd.pm
+++ b/sshd_wizard/Sshd.pm
@@ -213,11 +213,7 @@ sub new {
sub write_conf_restart_ssh {
$sshd->write_conf($conf);
- if (services::is_service_running('sshd')) {
- services::restart('sshd');
- } else {
- services::start('sshd');
- }
+ services::restart_or_start('sshd');
}
sub global_config {