Skip to content

Commit

Permalink
修改自动重启时间间隔为6小时
Browse files Browse the repository at this point in the history
修改自动重启时间间隔为6小时
  • Loading branch information
1265578519 committed Oct 25, 2024
1 parent bdcd180 commit 462ebcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ curl http://localhost:8080/stats
```

运行crontab -e
可以根据需要使用计划任务自动重启进程,下方意思,每天0点、4点、8点、12点、16点、20点整,自动重启进程。
可以根据需要使用计划任务自动重启进程,下方意思,每天0点、6点、12点、18点整,自动重启进程。
``` markdown
0 0,4,8,12,16,20 * * * killall -9 opentracker;sleep 3;cd /home/OpenTracker-master;cd opentracker;./opentracker -f opentracker.conf.sample -p 8080 -P 8080 -p 6961 -P 6961 -p 2710 -P 2710 &
0 0,6,12,18 * * * killall -9 opentracker;sleep 3;cd /home/OpenTracker-master;cd opentracker;./opentracker -f opentracker.conf.sample -p 8080 -P 8080 -p 6961 -P 6961 -p 2710 -P 2710 &
```

方法二
Expand Down

0 comments on commit 462ebcd

Please sign in to comment.