Update powerwall.sh

This commit is contained in:
2022-09-11 16:20:23 -05:00
parent cc740c999a
commit 09898f4af2

View File

@@ -182,7 +182,7 @@ if [ ${action-x} ]; then
checktemp_service)
if [ "${2}" = "stop" ]; then
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME[${3}]}`
/bin/kill -9 $service_pid
/usr/bin/pkill -P $service_pid
#/bin/systemctl stop $srvcname
#/usr/bin/killall bash
@@ -192,8 +192,8 @@ if [ ${action-x} ]; then
;;
checkacv_service)
if [ "${2}" = "stop" ]; then
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME[${3}]}`
/bin/kill -9 $service_pid
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME['ACV']}`
/usr/bin/pkill -P $service_pid
#/bin/systemctl stop $srvcname
#/usr/bin/killall bash