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