blob: 6f5b76f38bcff455ae755cf3d8ef5e2e5e7cf5a0 [file] [log] [blame]
#!/bin/sh
LOWER_BOUND=65
UPPER_BOUND=78
CHECK_INTERVAL=60
case "$1" in
start)
if runnable temp-monitor; then
babysit 60 \
temp-monitor \
-l "$LOWER_BOUND" \
-u "$UPPER_BOUND" \
-i "$CHECK_INTERVAL" 2>&1 | logos temp-monitor &
fi
;;
stop)
pkillwait -f "temp-monitor"
;;
restart|reload)
$0 stop; $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac