Update powerwall.sh
This commit is contained in:
13
powerwall.sh
13
powerwall.sh
@@ -343,8 +343,19 @@ STARTALL_SERVICES(){
|
||||
done
|
||||
}
|
||||
SERVICE_MNG(){
|
||||
echo "${2^}ing ${1}"
|
||||
if [ "${2}" = "start" ]; then
|
||||
sa=Starting
|
||||
|
||||
elif [ "${2}" = "stop" ]; then
|
||||
sa=Stopping
|
||||
|
||||
elif [ "${2}" = "restart" ]; then
|
||||
sa=Restarting
|
||||
|
||||
elif [ "${2}" = "status" ]; then
|
||||
echo -en "${idsCL[LightCyan]}${sa} ${1} Service ... "
|
||||
/bin/systemctl ${2} ${1}
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
}
|
||||
STOP_SERVICE(){
|
||||
echo "stop: ${1}"
|
||||
|
||||
Reference in New Issue
Block a user