From 5e152178e0ca7f37ba7a9c42cbc68780292c50c1 Mon Sep 17 00:00:00 2001 From: ankry Date: Sun, 4 May 2003 20:17:11 +0000 Subject: [PATCH] - cleaning Changed files: alarmwatch.init -> 1.3 --- alarmwatch.init | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/alarmwatch.init b/alarmwatch.init index cfa0404..45d93bf 100644 --- a/alarmwatch.init +++ b/alarmwatch.init @@ -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" + # Stop daemons. + # show "Stopping %s 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 -- 2.44.0