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