From nobody Sun Jul 24 20:57:05 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lrb8L1J1Kz4XXPC for ; Sun, 24 Jul 2022 20:57:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lrb8K4qkLz3ffv for ; Sun, 24 Jul 2022 20:57:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lrb8K3lBjzXYb for ; Sun, 24 Jul 2022 20:57:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26OKv5nG045948 for ; Sun, 24 Jul 2022 20:57:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26OKv5Oc045947 for ports-bugs@FreeBSD.org; Sun, 24 Jul 2022 20:57:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265317] sysutils/ipdbtools: add periodic weekly script for updating db Date: Sun, 24 Jul 2022 20:57:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nick@van-laarhoven.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658696225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eZoGVbURFuVsFhlBGC8Jwon67ZNtCaaqwA/45MjEEww=; b=F31QX2qAwbzak9lgPRCVlHLpaZTyn0UQKFlnkIq/xhVGXDINgfIIXSFQT8HnshZLvqDUFs IAU5vd6AcVq/lFb0sYchX9WCTk9HoMkxjPxU0+cKbwis77tY6kh8aRJIeuYWC0PjMxNbus RnImJAFwK2I+0IM6p2at4zVQ3dKuhhWaFjROSqMEFeErH0ENCXVmwfv6Plts9d3r9lKrUx QwTq1uFVX82A573pz21u/lMwX32hSRqEG6L+JMjRyQFCIZyY/IzEw79e1drk5uBITkUjP7 CKif66CZeVIFm6qEAIdjfrhxv9UIG55z9iaZLZRmcz7ublVeQ1+loBLgxJ6kpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658696225; a=rsa-sha256; cv=none; b=v2cvMVrFohTKUgw6+/U5rE3U4Y7xg+ZRrYLPnB7G0+fUpp91ng+o2XBEQujSQ1e5RGUbQF 4Mr97DulRNME2yG/q0aFOII/L+Pqec981BOhrZmKpAJ8HE4kbtNVYiwjfaRwYnTdgRPSEv JWKu4uo2sebt/sMLZxDEw4VAGiSqfOyv/FVXZdv82MfMIg5goMFDanQUyblKRoPWK0vIzC oBw2ayxGguY/0NJ718eQhQag7aYdOmIslnUIC263zl9VoDwslWw6y+bLQ2mSOsdEHy1Utl W+V37bvA9pkLgHUjLlmsX9Ja9v6VwcJJ7x2N3+ESY8NsPbwHaN5BwRiI/wgvJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265317 --- Comment #4 from Nick Hibma --- 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.=