Update power.inc.sh

This commit is contained in:
2025-06-02 23:27:05 -05:00
parent 7b4967134b
commit 1297cf2396

View File

@@ -1140,7 +1140,7 @@ AMBIENT TEMP: ${OFFSITE_TEMP}'F"
elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/power.offsite.ups.losscomm)) -ge 120 ]; then
echo "($(date +'%Y-%m-%d %H:%M:%S')) - 0.0'V - 0'% Battery - Restarting NUT service" >> ${PW_LOGFILE}
service nut-driver restart
systemctl restart nut-driver
sleep 10s
touch ${PW_TMPFOLDER}/power.offsite.ups.losscomm
fi