summaryrefslogtreecommitdiff
path: root/extra/lm_sensors/healthd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/lm_sensors/healthd')
-rw-r--r--extra/lm_sensors/healthd9
1 files changed, 8 insertions, 1 deletions
diff --git a/extra/lm_sensors/healthd b/extra/lm_sensors/healthd
index 0315dd788..5ffed5681 100644
--- a/extra/lm_sensors/healthd
+++ b/extra/lm_sensors/healthd
@@ -4,7 +4,7 @@
# /usr/sbin/healthd
#
-. /etc/conf.d/healthd
+. /etc/healthd.conf
cmd="${ALARM_CMD}"
addr="${ADMIN_EMAIL}"
@@ -21,6 +21,13 @@ while [ $# -gt 0 ] ; do
esac
done
+case "${ALARM_RESET}" in
+ yes) /usr/bin/sensors > /dev/null
+ ;;
+ no) true
+ ;;
+esac
+
[ -n "${cmd}" ] && [ -n "$( which -- "${cmd%% *}" )" ] || \
[ -n "${addr}" ] || exit 1