Update powerwall.sh
This commit is contained in:
@@ -859,7 +859,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "${3}" == "start" ] || [ "${3}" == "" ]; then
|
if [ "${3}" == "start" ] || [ "${3}" == "" ]; then
|
||||||
echo "start: ${1}"
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Starting" >> ${PW_LOGFILE}
|
||||||
if [ "${2}" == "temp" ]; then
|
if [ "${2}" == "temp" ]; then
|
||||||
# SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" &
|
# SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" &
|
||||||
CHECKTEMP_SERVICE
|
CHECKTEMP_SERVICE
|
||||||
@@ -882,6 +882,7 @@ fi
|
|||||||
elif [ "${2}" == "power" ]; then
|
elif [ "${2}" == "power" ]; then
|
||||||
STOP_SERVICE power
|
STOP_SERVICE power
|
||||||
echo "(`date +'%Y-%m-%d %H:%M:%S'`) Service Stopped" >> ${PW_LOGPOWER}
|
echo "(`date +'%Y-%m-%d %H:%M:%S'`) Service Stopped" >> ${PW_LOGPOWER}
|
||||||
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[power]}' Service Starting" >> ${PW_LOGFILE}
|
||||||
|
|
||||||
elif [ "${2}" == "powerlogger" ]; then
|
elif [ "${2}" == "powerlogger" ]; then
|
||||||
STOP_SERVICE powerlogger
|
STOP_SERVICE powerlogger
|
||||||
@@ -889,6 +890,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "${3}" == "restart" ]; then
|
elif [ "${3}" == "restart" ]; then
|
||||||
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Restarting" >> ${PW_LOGFILE}
|
||||||
echo
|
echo
|
||||||
SERVICE_MNG ${2} stop
|
SERVICE_MNG ${2} stop
|
||||||
echo -en "${idsCL[Yellow]}Pausing${idsCL[Default]}"
|
echo -en "${idsCL[Yellow]}Pausing${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user