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