From 0be241c26ccf33e1e842b41cdb47d3881fec58f0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 28 Jan 2024 20:44:51 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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