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 | dfc605d42b22063d49d29cc4a4779f74ce3a9a42 (patch) | |
tree | d9bb8c1b1b9957a96f7fbbe6097a18ddf77633fb | |
parent | 71acd1b0d107928e6773d67dfed40f00f11713de (diff) | |
download | drakx-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.
-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; |