From 4c4a31bfe3bd868fb47aa91747508093987ec9b5 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 6 Jan 2024 16:47:38 +0800 Subject: [PATCH] update --- conf/common/data_upload.conf | 4 ++-- sensor_to_server.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/common/data_upload.conf b/conf/common/data_upload.conf index caf0c4b..b88d323 100644 --- a/conf/common/data_upload.conf +++ b/conf/common/data_upload.conf @@ -9,9 +9,9 @@ autorestart=true ;重启次数 restart_times=3 ;启动后60秒没有异常就退出 -startsecs=60 +startsecs=100 ; 间隔30秒执行一次任务 -interval=30 +interval=20 redirect_stderr=true stopsignal=TERM stopasgroup=True diff --git a/sensor_to_server.py b/sensor_to_server.py index 2cc4a90..3703320 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -229,9 +229,9 @@ def p(): client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0) add(t2) # 运行一次就把这个程序关掉 - subprocess.Popen( - ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"], - shell=True) + # subprocess.Popen( + # ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"], + # shell=True) except Exception as e: # print(e) pass