diff --git a/defaults.inc b/defaults.inc index 5a8cdc32..301940cd 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.6.61-03112024' +VERS='2.6.62-03142024' noheader=' update service dailytemp confsync -r -report ' diff --git a/inc/power.inc.sh b/inc/power.inc.sh index a57f13db..db12cb77 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -879,9 +879,9 @@ AMBIENT TEMP: ${OFFSITE_TEMP}'F" elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/power.ups.losscomm)) -ge 120 ]; then echo "($(date +'%Y-%m-%d %H:%M:%S')) - 0.0'volts - 0'% Battery - Restarting NUT service" >> ${PW_LOGFILE} - SENDNOTICE2 "NUT DRIVER FAILURE" "OMG WHAT DO WE DO, FIX ME!!! I used to be cool and say..... Restarting NUT service" - # /usr/local/etc/rc.d/nut.sh restart - # sleep 10s + # SENDNOTICE2 "NUT DRIVER FAILURE" "OMG WHAT DO WE DO, FIX ME!!! I used to be cool and say..... Restarting NUT service" + service nut-driver restart + sleep 10s touch ${PW_TMPFOLDER}/power.ups.losscomm fi fi