summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/lm_sensors/healthd
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/extra-testing/lm_sensors/healthd
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/extra-testing/lm_sensors/healthd')
-rw-r--r--abs/extra-testing/lm_sensors/healthd46
1 files changed, 0 insertions, 46 deletions
diff --git a/abs/extra-testing/lm_sensors/healthd b/abs/extra-testing/lm_sensors/healthd
deleted file mode 100644
index 0315dd7..0000000
--- a/abs/extra-testing/lm_sensors/healthd
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-
-#
-# /usr/sbin/healthd
-#
-
-. /etc/conf.d/healthd
-
-cmd="${ALARM_CMD}"
-addr="${ADMIN_EMAIL}"
-slp="${ALARM_SLEEP}"
-sensors="/usr/bin/sensors"
-
-
-while [ $# -gt 0 ] ; do
- case "${1}" in
- -c ) cmd="${2}" ; shift 2 ;;
- -m ) addr="${2}" ; shift 2 ;;
- -s ) slp="${2}" ; shift 2 ;;
- * ) shift 1 ;;
- esac
-done
-
-[ -n "${cmd}" ] && [ -n "$( which -- "${cmd%% *}" )" ] || \
- [ -n "${addr}" ] || exit 1
-
-[ "${slp}" -ge 2 ] || slp=600
-
-while true ; do
- sleep 15
- message="$( $sensors )"
- case "$message" in
- '' ) message='Could not get any sensor values !' ;;
- *ALARM* ) : ;;
- * ) message='' ;;
- esac
- if [ -n "$message" ]; then
- if [ -n "${addr}" ]; then
- echo "$message" | mail -s \
- "Sensors ALARM detected at host: $( hostname )" \
- "${addr}"
- fi
- [ -z "${cmd}" ] || ${cmd} &
- sleep ${slp}
- fi
-done &