This commit is contained in:
2024-03-14 07:18:01 -05:00
parent cabd8bba92
commit fa9f82de7d
2 changed files with 4 additions and 4 deletions

View File

@@ -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 '

View File

@@ -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