diff options
author | Colin Guthrie <colin@mageia.org> | 2012-04-24 20:10:35 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-04-24 20:10:35 +0000 |
commit | 4104064b9fc69742c46adbf013dbc6a42febd5e8 (patch) | |
tree | d9bb8c1b1b9957a96f7fbbe6097a18ddf77633fb | |
parent | 822c835615ff6d081217a5bb44b6b9fc72afcb99 (diff) | |
download | drakx-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.pm | 2 |
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; |