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