update
This commit is contained in:
parent
c42f47e095
commit
4c4a31bfe3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue