]> git.pld-linux.org Git - packages/lm_sensors.git/blobdiff - sensors.init
- pl fixes
[packages/lm_sensors.git] / sensors.init
index be3f415a6526fa59996cc01c5270ba4ed8fbd7c6..c081bfd2c1e09ea66ef39f891fc3bfda6f437f38 100644 (file)
@@ -22,9 +22,8 @@ case "$1" in
   start)
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/sensors ]; then
-               msg_starting "sensors daemon"
-               if [ -z "$BUS" ] || [ -z "$CHIP" ]; then 
-                       fail
+               if [ -z "$BUS" ] || [ -z "$CHIP" ]; then
+                       msg_starting "sensors daemon"; fail
                        nls "BUS or CHIP not configured in /etc/sysconfig/sensors" >&2
                        exit 6
                fi
@@ -41,6 +40,7 @@ case "$1" in
                        sensors -s
                fi
 
+               msg_starting "sensors daemon"
                daemon sensord \
                        $([ -n "$INTERVAL" ] && echo "-i $INTERVAL") \
                        $([ -n "$LOG_INTERVAL" ] && echo "-l $LOG_INTERVAL") \
This page took 0.030758 seconds and 4 git commands to generate.