From 09898f4af272c546b740358bb740897a0d8574e4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 11 Sep 2022 16:20:23 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index ca7d9562..3b59ec0b 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -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