From nobody Sun Apr 21 01:24:15 2024 X-Original-To: questions@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 4VMVzM3XKyz5H68c for ; Sun, 21 Apr 2024 01:24:31 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMVzL5VjTz3wlD for ; Sun, 21 Apr 2024 01:24:30 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a524ecaf215so344905766b.2 for ; Sat, 20 Apr 2024 18:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713662667; x=1714267467; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nACUQ9mfznYq5E8K1G3AmpOq+akbksciayJR/eiifHY=; b=J5wFYco7hpnBdIuaINY1B2bXu1ehiHTJgCGtWgMsN3wLBgPmyjIFEqBplXkaEB8js4 WJEE44Qb92Lx2TTmGjLWF8b1LScgTnskYhzbjXdgl+eJwzHBdGVgRjDdbFwAZa5sM6Yw pD750hPVrV3Xl8kqa0hrebId5v5BcPFAp41LVwe7sM7FAUBbiAnt870O8U1kS+Qj3CI1 Z5vm9wFqPPEGY/K+Bor4leILcsz6bEqmPQEmKDwZQSz7XlkEwH6mDdu08CSZMTFeTrDs 4524Dv3R1OKb9vPLVXWL4baUJqUcXBW0uwWAiuIdU7u7XgklvkypTan2kKyfpGBO9bql Gv7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713662667; x=1714267467; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nACUQ9mfznYq5E8K1G3AmpOq+akbksciayJR/eiifHY=; b=c45bKebo7YAswPjSEr3dtxQcmD5vjv4dVNVvBalwBoFqQneZ1Dl9nrrJ8FipoZM1Tm 6TZys58HUNk9y02Gg/J36zrZWlyVHcJp7gcWhj9m5V/bZkozMZM9Lqi96mjKg9H/5Ju4 uCWbiCoOOFqrpubyN8jVPrE/NRzg3lvHLeK4UGp5putAU+39HUg2QCsUhIzBskgWMp4i 3gGmRn/fAd/zaeE0UhSkeRngLByUn1ohsxW/oP+BUW4LeP0d65J8o9hTDh1w7CHe1okw rGCAH8lJA9sLx+k24wRzq0YK6iBLq/xJdSkGF4lV/KSghznf+uSDT4H5pNnhgzell5SS vmMw== X-Gm-Message-State: AOJu0Ywy2TBE5NaqPCJ9F+Zqo7iLW+im2Il9e+9b6Dxjf7hiW8zt8E52 OOykHEo9JiMQhPIvBJnh33rIVMfFaSOr/mBilyhaWi4UN2KqV2aF8s7oL/Ie9EP9+6aJy4pkSFr H6FD9jY3yRCgljPjH9W9yFr2K7G5xLA== X-Google-Smtp-Source: AGHT+IGesW5YzQOuTuv/KYcjH9JZX7xTftFFJhyhUdApXXiprvMhIaMF05speEXO9LOFOz+Vr8Uxwgx+yzUkXVieSr4= X-Received: by 2002:a17:906:f5a5:b0:a55:a6c6:17f4 with SMTP id cm37-20020a170906f5a500b00a55a6c617f4mr664599ejd.4.1713662667173; Sat, 20 Apr 2024 18:24:27 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <20240420091633.00002f24@seibercom.net> <20240420153432.671268909CE2@ary.qy> In-Reply-To: From: paul beard Date: Sat, 20 Apr 2024 18:24:15 -0700 Message-ID: Subject: Re: certbot To: Souji Thenria Cc: FreeBSD Questions List Content-Type: multipart/alternative; boundary="0000000000008ab56a0616912e54" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4VMVzL5VjTz3wlD --0000000000008ab56a0616912e54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think I saw that in the docs=E2=80=A6I could never have come up with that= on my own. I think it's to reduce any spikes (like midnight as it crosses time zones). On Sat, Apr 20, 2024 at 6:11=E2=80=AFPM Souji Thenria wrote: > On Sat Apr 20, 2024 at 10:29 PM BST, paul beard wrote: > > 00 00 * * Sun python -c 'import random; import time; > > time.sleep(random.random() * 3600)' && /usr/local/bin/certbot renew > > --renew-hook 'service nginx reload' > > Hi Paul, > > Out of pure curiosity: > Is there a reason why you sleep for a random number of hours (supposed > time.sleep() takes seconds as input parameter) before executing the > certbot? > > Regards, > Souji > > --=20 Paul Beard / www.paulbeard.org/ --0000000000008ab56a0616912e54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think I saw that in the docs=E2=80=A6I could never have = come up with that on my own. I think it's to reduce=C2=A0any spikes (li= ke midnight as it crosses=C2=A0time zones).=C2=A0

On Sat, Apr 20, 2024 at 6:= 11=E2=80=AFPM Souji Thenria <m= ail@souji-thenria.net> wrote:
On Sat Apr 2= 0, 2024 at 10:29 PM BST, paul beard wrote:
> 00 00 * * Sun=C2=A0 =C2=A0python -c 'import random; import time; > time.sleep(random.random() * 3600)' && /usr/local/bin/cert= bot renew
> --renew-hook 'service nginx reload'

Hi Paul,

Out of pure curiosity:
Is there a reason why you sleep for a random number of hours (supposed
time.sleep() takes seconds as input parameter) before executing the
certbot?

Regards,
Souji



--
Pa= ul Beard / www.paul= beard.org/
--0000000000008ab56a0616912e54--