From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2012-April/014759.html | 128 ++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 zarb-ml/mageia-dev/2012-April/014759.html (limited to 'zarb-ml/mageia-dev/2012-April/014759.html') diff --git a/zarb-ml/mageia-dev/2012-April/014759.html b/zarb-ml/mageia-dev/2012-April/014759.html new file mode 100644 index 000000000..f8e7985f7 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-April/014759.html @@ -0,0 +1,128 @@ + + + + [Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not. + + + + + + + + + +

[Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not.

+ Thierry Vignaud + thierry.vignaud at gmail.com +
+ Wed Apr 25 10:03:19 CEST 2012 +

+
+ +
On 24 April 2012 22:10,  <root at mageia.org> wrote:
+> services: Do not rely on /var/lock/subsys/$service to determin if a service
+> is running or not.
+
+BTW we should make is_service_running more robust by handling services
+where status isn't implemented...
+
+> Modified: drakx/trunk/perl-install/services.pm
+> ===================================================================
+> --- drakx/trunk/perl-install/services.pm	2012-04-24 20:10:33 UTC (rev 4243)
+> +++ drakx/trunk/perl-install/services.pm	2012-04-24 20:10:35 UTC (rev 4244)
+> @@ -239,7 +239,7 @@
+>      };
+>      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;
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1