Update powerwall.sh

This commit is contained in:
2023-05-15 22:25:14 -05:00
parent 3922a223fa
commit fee45c46c6

View File

@@ -343,8 +343,19 @@ STARTALL_SERVICES(){
done done
} }
SERVICE_MNG(){ 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} /bin/systemctl ${2} ${1}
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
} }
STOP_SERVICE(){ STOP_SERVICE(){
echo "stop: ${1}" echo "stop: ${1}"