Update powerwall.sh
This commit is contained in:
@@ -333,8 +333,7 @@ RESTARTALL_SERVICES(){
|
|||||||
}
|
}
|
||||||
STOPALL_SERVICES(){
|
STOPALL_SERVICES(){
|
||||||
for srvc in "${POWERWALL_SERVICES[@]}"; do
|
for srvc in "${POWERWALL_SERVICES[@]}"; do
|
||||||
echo "Stopping $srvc"
|
SERVICE_MNG ${srvc} stop
|
||||||
/bin/systemctl stop $srvc
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
STARTALL_SERVICES(){
|
STARTALL_SERVICES(){
|
||||||
@@ -343,6 +342,10 @@ STARTALL_SERVICES(){
|
|||||||
/bin/systemctl start $srvc
|
/bin/systemctl start $srvc
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
SERVICE_MNG(){
|
||||||
|
echo "${2^}ing ${1}"
|
||||||
|
/bin/systemctl ${2} ${1}
|
||||||
|
}
|
||||||
STOP_SERVICE(){
|
STOP_SERVICE(){
|
||||||
echo "stop: ${1}"
|
echo "stop: ${1}"
|
||||||
service_pid=`systemctl show --property MainPID --value ${POWERWALL_SERVICES[${1}]}`
|
service_pid=`systemctl show --property MainPID --value ${POWERWALL_SERVICES[${1}]}`
|
||||||
|
|||||||
Reference in New Issue
Block a user