summaryrefslogtreecommitdiffstats
path: root/common/Wizcommon.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 15:45:31 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 15:45:31 +0000
commit99e9bba667a2a9c13244aff19fddc5d842e97629 (patch)
tree0c886b0208f62728b8ee6eaeaf1006a4ac2484d2 /common/Wizcommon.pm
parentb372d99e0702e854df467e9e71cf63fa292e6969 (diff)
downloaddrakwizard-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/Wizcommon.pm')
-rw-r--r--common/Wizcommon.pm3
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';
}