Update powerwall.sh

This commit is contained in:
2022-09-03 13:33:34 -05:00
parent 7d9f2f7b45
commit 90cde7632c

View File

@@ -80,8 +80,15 @@ CHECKTEMP_SERVICE(){
if [ ${action-x} ]; then
case $action in
checktemp) CHECKTEMP ${2};;
checktemp_service) CHECKTEMP_SERVICE ${2};;
checktemp_service)
if [ "${2}" == "stop" ]; then
service_pid=`systemctl show --property MainPID --value serverroomth_sensor_monitor`
/bin/kill $service_pid
/bin/systemctl stop serverroomth_sensor_monitor
else
CHECKTEMP_SERVICE ${2}
fi
;;
esac
fi