Date: Sun, 24 Jul 2022 20:57:05 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265317] sysutils/ipdbtools: add periodic weekly script for updating db Message-ID: <bug-265317-7788-diVYiw8FyN@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-265317-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-265317-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265317 --- 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=3D$( (echo "ftp.lacnic.net"; echo "ftp.ripe.net" ) | sort -R | tai= l -1 ) wrt 2) sure, but that is more a case of replacing the target file only if t= he 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 cront= abs? 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=3D3600 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265317-7788-diVYiw8FyN>