From fa9f82de7d5e09e96f3dcfc1a07e31f3d252b1de Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 14 Mar 2024 07:18:01 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- inc/power.inc.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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