This commit is contained in:
xyj 2024-01-06 16:47:38 +08:00
parent c42f47e095
commit 4c4a31bfe3
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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