Update powerwall.sh
This commit is contained in:
@@ -182,7 +182,7 @@ if [ ${action-x} ]; then
|
|||||||
checktemp_service)
|
checktemp_service)
|
||||||
if [ "${2}" = "stop" ]; then
|
if [ "${2}" = "stop" ]; then
|
||||||
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME[${3}]}`
|
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
|
#/bin/systemctl stop $srvcname
|
||||||
#/usr/bin/killall bash
|
#/usr/bin/killall bash
|
||||||
|
|
||||||
@@ -192,8 +192,8 @@ if [ ${action-x} ]; then
|
|||||||
;;
|
;;
|
||||||
checkacv_service)
|
checkacv_service)
|
||||||
if [ "${2}" = "stop" ]; then
|
if [ "${2}" = "stop" ]; then
|
||||||
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME[${3}]}`
|
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME['ACV']}`
|
||||||
/bin/kill -9 $service_pid
|
/usr/bin/pkill -P $service_pid
|
||||||
#/bin/systemctl stop $srvcname
|
#/bin/systemctl stop $srvcname
|
||||||
#/usr/bin/killall bash
|
#/usr/bin/killall bash
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user