update
This commit is contained in:
parent
c42f47e095
commit
4c4a31bfe3
|
@ -9,9 +9,9 @@ autorestart=true
|
||||||
;重启次数
|
;重启次数
|
||||||
restart_times=3
|
restart_times=3
|
||||||
;启动后60秒没有异常就退出
|
;启动后60秒没有异常就退出
|
||||||
startsecs=60
|
startsecs=100
|
||||||
; 间隔30秒执行一次任务
|
; 间隔30秒执行一次任务
|
||||||
interval=30
|
interval=20
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
stopsignal=TERM
|
stopsignal=TERM
|
||||||
stopasgroup=True
|
stopasgroup=True
|
||||||
|
|
|
@ -229,9 +229,9 @@ def p():
|
||||||
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
||||||
add(t2)
|
add(t2)
|
||||||
# 运行一次就把这个程序关掉
|
# 运行一次就把这个程序关掉
|
||||||
subprocess.Popen(
|
# subprocess.Popen(
|
||||||
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
# ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||||
shell=True)
|
# shell=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# print(e)
|
# print(e)
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue