Update powerwall.sh
This commit is contained in:
@@ -217,6 +217,11 @@ UPDATE_SERVICES(){
|
|||||||
/bin/systemctl start $srvc
|
/bin/systemctl start $srvc
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
STOPALL_SERVICES(){
|
||||||
|
for srvc in "${POWERWALL_SERVICES[@]}"; do
|
||||||
|
/bin/systemctl stop $srvc
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
STOP_SERVICE(){
|
STOP_SERVICE(){
|
||||||
service_pid=`systemctl show --property MainPID --value ${POWERWALL_SERVICES[${1}]}`
|
service_pid=`systemctl show --property MainPID --value ${POWERWALL_SERVICES[${1}]}`
|
||||||
@@ -258,6 +263,7 @@ SHUTDOWN_SERVERS(){
|
|||||||
|
|
||||||
if [ ${action-x} ]; then
|
if [ ${action-x} ]; then
|
||||||
case $action in
|
case $action in
|
||||||
|
stopall) STOPALL_SERVICES;;
|
||||||
updateservices) UPDATE_SERVICES;;
|
updateservices) UPDATE_SERVICES;;
|
||||||
checktemp) CHECKTEMP ${2};;
|
checktemp) CHECKTEMP ${2};;
|
||||||
checktemp_service)
|
checktemp_service)
|
||||||
|
|||||||
Reference in New Issue
Block a user