Update powerwall.sh
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user