diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 17:18:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-17 17:18:40 +0000 |
commit | 108c9ad989aeeff143bebf230946a50ae5e8ae3e (patch) | |
tree | 2a9a4074cb511ed13987785ecd9bdfa42a8b8361 /sshd_wizard | |
parent | 32be07bcf5253e7f321dccd2efd40b5fffb1011c (diff) | |
download | drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.gz drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.bz2 drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.xz drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.zip |
do not reinvent services::restart_or_start()
Diffstat (limited to 'sshd_wizard')
-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 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 { |