]> git.pld-linux.org Git - packages/alarmwatch.git/commitdiff
- cleaning
authorankry <ankry@pld-linux.org>
Sun, 4 May 2003 20:17:11 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    alarmwatch.init -> 1.3

alarmwatch.init

index cfa0404cf5ad1a6b59437043207ec6d763e47c11..45d93bf1c461961217ce02523963b303073061bc 100644 (file)
@@ -2,7 +2,7 @@
 #
 # alarmwatch   watches for lm_sensors alarms
 #
-# chkconfig:    2345  32 68
+# chkconfig:   2345  32 68
 #
 # description: watches lm_sensors and beeps on aparms
 #
@@ -26,12 +26,12 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/alarmwatch ]; then
                if [ -z "$CHIPS" ]; then
-                   nls "alarmwatch not configured (CHIPS not set), cannot start."
-                   exit 1
+                       nls "alarmwatch not configured (CHIPS not set), cannot start."
+                       exit 1
                fi
                if [ "$SENSORS_SETUP" = "yes" ]; then
-                   # setup sensors limits, etc.
-                   sensors -s
+                       # setup sensors limits, etc.
+                       sensors -s
                fi
                # read from sensors to clear out any alarms caused by previous limits...
                sensors > /dev/null
@@ -46,10 +46,10 @@ case "$1" in
                msg_already_running alarmwatch
                exit 1
        fi
-        ;;
+       ;;
   stop)
-        # Stop daemons.
-        # show "Stopping %s service" <service>
+       # Stop daemons.
+       # show "Stopping %s service" <service>
        if [ -f /var/lock/subsys/alarmwatch ]; then
                msg_stopping alarmwatch
                killproc alarmwatch
@@ -60,19 +60,19 @@ case "$1" in
                msg_not_running alarmwatch
                exit 1
        fi      
-        ;;
+       ;;
   restart|reload|force-reload)
-        $0 stop
+       $0 stop
        $0 start
-        ;;
+       ;;
   status)
        status alarmwatch
        RETVAL=$?
-        ;;
+       ;;
   *)
-        # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
-       msg_usage "$0 {start|stop|status|restart|reload|force-reload}"
-        exit 1
+       # show "Usage: %s {start|stop|restart|reload|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 1
 esac
 
 exit $RETVAL
This page took 0.097843 seconds and 4 git commands to generate.