packages: lm_sensors/sensord.init - checking of sensord deamon in start/sto...

blekot blekot at pld-linux.org
Sun Apr 22 15:28:54 CEST 2012


Author: blekot                       Date: Sun Apr 22 13:28:53 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- checking of sensord deamon in start/stop() function corrected

---- Files affected:
packages/lm_sensors:
   sensord.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/lm_sensors/sensord.init
diff -u packages/lm_sensors/sensord.init:1.1 packages/lm_sensors/sensord.init:1.2
--- packages/lm_sensors/sensord.init:1.1	Wed Apr 18 13:31:19 2012
+++ packages/lm_sensors/sensord.init	Sun Apr 22 15:28:48 2012
@@ -21,7 +21,7 @@
 	fi
 	
 	# Check if the service is already running?
-	if [ ! -f /var/lock/subsys/sensord ]; then
+	if [ -f /var/lock/subsys/sensord ]; then
 		msg_already_running "sensors daemon"
 		return
 	fi
@@ -38,7 +38,7 @@
 }
 
 stop() {
-	if [ -f /var/lock/subsys/sensord ]; then
+	if [ ! -f /var/lock/subsys/sensord ]; then
 		msg_not_running "sensors daemon"
 		return
 	fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/lm_sensors/sensord.init?r1=1.1&r2=1.2



More information about the pld-cvs-commit mailing list