This commit is contained in:
xyj 2024-01-06 16:49:27 +08:00
parent 4c4a31bfe3
commit d0ab550588
2 changed files with 6 additions and 5 deletions

View File

@ -3,15 +3,11 @@ directory=/home/pi/lot_manager
command=/usr/bin/python data_upload.py
user=pi
;是否随开机自启 或者reload自启动
autostart=true
autostart=false
;失败重启
autorestart=true
;重启次数
restart_times=3
;启动后60秒没有异常就退出
startsecs=100
; 间隔30秒执行一次任务
interval=20
redirect_stderr=true
stopsignal=TERM
stopasgroup=True

View File

@ -8,6 +8,11 @@ autostart=false
autorestart=true
;重启次数
restart_times=3
;暂时改一下!!
;启动后60秒没有异常就退出
startsecs=100
; 间隔30秒执行一次任务
interval=20
redirect_stderr=true
stopsignal=TERM
stopasgroup=True