Update power.inc.sh
This commit is contained in:
@@ -552,6 +552,7 @@ Shutting down main servers" 1
|
||||
}
|
||||
|
||||
POWERLOGGER_SERVICE(){
|
||||
SENDPOWER "POWER LOGGING Service Startup" &
|
||||
while true; do
|
||||
LogDataTime=`date +'%Y-%m-%d %H:%M:%S'`
|
||||
source ${PW_FOLDER}/defaults.inc
|
||||
@@ -844,4 +845,11 @@ PDUCONTROL(){
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
|
||||
SENDPOWER(){
|
||||
st_power=$(CHECKPOWER -p)
|
||||
SENDNOTICE "${1}" "${st_power}"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user