update
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user