diff --git a/powerwall.sh b/powerwall.sh index 2b695002..d0467401 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -887,6 +887,11 @@ fi 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 Stopped" >> ${PW_LOGFILE} + elif [ "${2}" == "offsitepower" ]; then + STOP_SERVICE offsitepower + 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 Stopped" >> ${PW_LOGFILE} + elif [ "${2}" == "powerlogger" ]; then STOP_SERVICE powerlogger echo "(`date +'%Y-%m-%d %H:%M:%S'`) Service Stopped" >> ${PW_LOGPOWER}