diff options
Diffstat (limited to 'sshd_wizard/Sshd.pm')
-rwxr-xr-x | sshd_wizard/Sshd.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sshd_wizard/Sshd.pm b/sshd_wizard/Sshd.pm index 2e5dec32..a560729e 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 { |