Skip to content

Commit

Permalink
定时重启aria2b
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperNG6 committed Aug 26, 2023
1 parent eed1042 commit 52f6146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion root/aria2/conf/rpc-tracker0
@@ -1,6 +1,6 @@
# do daily/weekly/monthly maintenance
# min hour day month weekday command
*/15 * * * * run-parts /etc/periodic/15min
0 */2 * * * ps -ef | grep aria2b | grep -v grep | awk '{print $2}' | xargs kill -9
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
Expand Down
3 changes: 2 additions & 1 deletion root/aria2/conf/rpc-tracker1
@@ -1,3 +1,4 @@
# do daily/weekly/monthly maintenance
# min hour day month weekday command
0 5 * * * bash /aria2/script/rpc_tracker.sh
0 5 * * * bash /aria2/script/rpc_tracker.sh
0 */2 * * * ps -ef | grep aria2b | grep -v grep | awk '{print $2}' | xargs kill -9

0 comments on commit 52f6146

Please sign in to comment.