diff --git a/powerwall.sh b/powerwall.sh index 0dea827c..1a7900fc 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -888,14 +888,14 @@ fi fi elif [ "${3}" == "restart" ]; then - # echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Restarted" >> ${PW_LOGFILE} - # echo - # SERVICE_MNG ${2} stop - # echo -en "${idsCL[Yellow]}Pausing${idsCL[Default]}" - # sleep 6s - # echo -en "\033[2K\r" - # DIVIDER . yellow 50 - # SERVICE_MNG ${2} start + echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Restarted" >> ${PW_LOGFILE} + echo + SERVICE_MNG ${2} stop + echo -en "${idsCL[Yellow]}Pausing${idsCL[Default]}" + sleep 6s + echo -en "\033[2K\r" + DIVIDER . yellow 50 + SERVICE_MNG ${2} start echo elif [ "${3}" == "status" ]; then