diff --git a/powerwall.sh b/powerwall.sh index b95a6fa7..4e2dc00a 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -621,7 +621,11 @@ fi /usr/local/bin/powerwall service ${2} start elif [ "${3}" = "status" ]; then - SERVICE_MNG ${2} status + srvc=${POWERWALL_SERVICES[${2}]} + c=0; spc=''; spc1=`expr 25 - ${#srvc}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -en "${idsCL[LightCyan]}${srvc}${spc}: " + [ "$(systemctl is-active ${srvc})" == "active" ] && echo -en "${idsCL[Green]}Running" || echo -en "${idsCL[Yellow]}Not Running" + echo -e "${idsCL[Default]}" fi fi ;;