Update power.inc.sh

This commit is contained in:
2023-12-30 14:46:57 -06:00
parent be89f5d210
commit 656c71e13f

View File

@@ -552,6 +552,7 @@ Shutting down main servers" 1
} }
POWERLOGGER_SERVICE(){ POWERLOGGER_SERVICE(){
SENDPOWER "POWER LOGGING Service Startup" &
while true; do while true; do
LogDataTime=`date +'%Y-%m-%d %H:%M:%S'` LogDataTime=`date +'%Y-%m-%d %H:%M:%S'`
source ${PW_FOLDER}/defaults.inc source ${PW_FOLDER}/defaults.inc
@@ -845,3 +846,10 @@ PDUCONTROL(){
;; ;;
esac esac
} }
SENDPOWER(){
st_power=$(CHECKPOWER -p)
SENDNOTICE "${1}" "${st_power}"
}