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