This commit is contained in:
2024-01-28 13:26:26 -06:00
parent 3acfcff674
commit 9b44ac7b83
4 changed files with 4 additions and 4 deletions

View File

@@ -41,12 +41,15 @@ STARTALL_SERVICES(){
SERVICE_MNG(){
if [ "${2}" == "start" ]; then
sa="${idsCL[Green]}Starting"
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${1}]}' Service Starting" >> ${PW_LOGFILE}
elif [ "${2}" == "stop" ]; then
sa="${idsCL[LightRed]}Stopping"
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${1}]}' Service Stopping" >> ${PW_LOGFILE}
elif [ "${2}" == "restart" ]; then
sa="${idsCL[Green]}Restarting"
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${1}]}' Service Restarting" >> ${PW_LOGFILE}
elif [ "${2}" == "status" ]; then
sa="${idsCL[Yellow]}Status for"