summaryrefslogtreecommitdiffstats
path: root/perl-install/services.pm
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-04-24 20:10:35 +0000
committerColin Guthrie <colin@mageia.org>2012-04-24 20:10:35 +0000
commitdfc605d42b22063d49d29cc4a4779f74ce3a9a42 (patch)
treed9bb8c1b1b9957a96f7fbbe6097a18ddf77633fb /perl-install/services.pm
parent71acd1b0d107928e6773d67dfed40f00f11713de (diff)
downloaddrakx-dfc605d42b22063d49d29cc4a4779f74ce3a9a42.tar
drakx-dfc605d42b22063d49d29cc4a4779f74ce3a9a42.tar.gz
drakx-dfc605d42b22063d49d29cc4a4779f74ce3a9a42.tar.bz2
drakx-dfc605d42b22063d49d29cc4a4779f74ce3a9a42.tar.xz
drakx-dfc605d42b22063d49d29cc4a4779f74ce3a9a42.zip
services: Do not rely on /var/lock/subsys/$service to determin if a service is running or not.
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r--perl-install/services.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index 73949c6f0..ea41eb878 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -239,7 +239,7 @@ sub ask_standalone_gtk {
};
my $update_service = sub {
my ($service, $label) = @_;
- my $started = -e "/var/lock/subsys/$service";
+ my $started = is_service_running($service);
$label->set_label($started ? N("running") : N("stopped"));
};
my $b = Gtk2::EventBox->new;