Update powerwall.sh

This commit is contained in:
2022-09-12 21:54:18 -05:00
parent e8392ad098
commit 585e8a39d1

View File

@@ -217,6 +217,11 @@ UPDATE_SERVICES(){
/bin/systemctl start $srvc
done
}
STOPALL_SERVICES(){
for srvc in "${POWERWALL_SERVICES[@]}"; do
/bin/systemctl stop $srvc
done
}
STOP_SERVICE(){
service_pid=`systemctl show --property MainPID --value ${POWERWALL_SERVICES[${1}]}`
@@ -258,6 +263,7 @@ SHUTDOWN_SERVERS(){
if [ ${action-x} ]; then
case $action in
stopall) STOPALL_SERVICES;;
updateservices) UPDATE_SERVICES;;
checktemp) CHECKTEMP ${2};;
checktemp_service)