summaryrefslogtreecommitdiffstats
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
commit4104064b9fc69742c46adbf013dbc6a42febd5e8 (patch)
treed9bb8c1b1b9957a96f7fbbe6097a18ddf77633fb
parent822c835615ff6d081217a5bb44b6b9fc72afcb99 (diff)
downloaddrakx-backup-do-not-use-4104064b9fc69742c46adbf013dbc6a42febd5e8.tar
drakx-backup-do-not-use-4104064b9fc69742c46adbf013dbc6a42febd5e8.tar.gz
drakx-backup-do-not-use-4104064b9fc69742c46adbf013dbc6a42febd5e8.tar.bz2
drakx-backup-do-not-use-4104064b9fc69742c46adbf013dbc6a42febd5e8.tar.xz
drakx-backup-do-not-use-4104064b9fc69742c46adbf013dbc6a42febd5e8.zip
services: Do not rely on /var/lock/subsys/$service to determin if a service is running or not.
-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;