Update powerwall.sh
This commit is contained in:
@@ -82,10 +82,9 @@ if [ ${action-x} ]; then
|
||||
checktemp) CHECKTEMP ${2};;
|
||||
checktemp_service)
|
||||
if [ "${2}" == "stop" ]; then
|
||||
service_pid=`systemctl show --property MainPID --value serverroomth_sensor_monitor`
|
||||
|
||||
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME[${3}]}`
|
||||
/bin/kill -9 $service_pid
|
||||
/bin/systemctl stop serverroomth_sensor_monitor
|
||||
/bin/systemctl stop $srvcname
|
||||
#/usr/bin/killall bash
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user