diff --git a/powerwall.sh b/powerwall.sh index 9b7034c6..1a7900fc 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -41,15 +41,12 @@ 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" @@ -859,7 +856,7 @@ fi fi else if [ "${3}" == "start" ] || [ "${3}" == "" ]; then - echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Starting" >> ${PW_LOGFILE} + echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Started" >> ${PW_LOGFILE} if [ "${2}" == "temp" ]; then # SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" & CHECKTEMP_SERVICE @@ -891,7 +888,7 @@ fi fi elif [ "${3}" == "restart" ]; then - echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Restarting" >> ${PW_LOGFILE} + 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]}"