[Bug 265317] sysutils/ipdbtools: add periodic weekly script for updating db
Date: Sun, 24 Jul 2022 20:57:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265317 --- Comment #4 from Nick Hibma <nick@van-laarhoven.org> --- Thank you for your thoughtful comments! wrt 1) You could randomize the pick if no arguments are given: MIRROR=$( (echo "ftp.lacnic.net"; echo "ftp.ripe.net" ) | sort -R | tail -1 ) wrt 2) sure, but that is more a case of replacing the target file only if the download succeeded. wrt 3) certbot required the use of a cronjob as well, which was cumbersome and error prone; now this thing is included in the weekly mails it is trivial to set up, get right and get the result in the weekly mails. Case in point on crontabs: Did you know that '%' is a special char in crontabs? I didn't... wrt 4) There is some mitigation in the weekly scripts for that: /etc/defaults/periodic.conf: # Max time to sleep to avoid causing congestion on download servers anticongestion_sleeptime=3600 In certbot weekly script (also in my weekly script as it is a copy of that script) a call to the 'anticongestion' function. And: people copy&paste your crontab entry, so you get the same problem. -- You are receiving this mail because: You are the assignee for the bug.