diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 15:45:31 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-17 15:45:31 +0000 |
commit | 99e9bba667a2a9c13244aff19fddc5d842e97629 (patch) | |
tree | 0c886b0208f62728b8ee6eaeaf1006a4ac2484d2 /common | |
parent | b372d99e0702e854df467e9e71cf63fa292e6969 (diff) | |
download | drakwizard-99e9bba667a2a9c13244aff19fddc5d842e97629.tar drakwizard-99e9bba667a2a9c13244aff19fddc5d842e97629.tar.gz drakwizard-99e9bba667a2a9c13244aff19fddc5d842e97629.tar.bz2 drakwizard-99e9bba667a2a9c13244aff19fddc5d842e97629.tar.xz drakwizard-99e9bba667a2a9c13244aff19fddc5d842e97629.zip |
(check_started) fix checking services status (mga#6009)
(inspirated by Derek Jennings)
Diffstat (limited to 'common')
-rw-r--r-- | common/Wizcommon.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm index 7e58107a..5c14c545 100644 --- a/common/Wizcommon.pm +++ b/common/Wizcommon.pm @@ -23,6 +23,7 @@ package MDK::Wizard::Wizcommon; use strict; use standalone; use common; +use services; use MDK::Common; use MDK::Wizard::IFCFG; @@ -45,7 +46,7 @@ sub new { sub check_started { my ($service) = @_; - my ($isrunning) = chomp_(`pidof $service`) =~ /(\d+)/m; + my ($isrunning) = services::is_service_running($service); if (!$isrunning) { return 'error_end'; } |