Date: Sat, 20 Apr 2024 18:24:15 -0700 From: paul beard <paulbeard@gmail.com> To: Souji Thenria <mail@souji-thenria.net> Cc: FreeBSD Questions List <questions@freebsd.org> Subject: Re: certbot Message-ID: <CAMtcK2qfRBrOAuWBm1gLEPRc8pDTQx0jOgKJ06d_B6HqrCA7JQ@mail.gmail.com> In-Reply-To: <D0PEG8P8AFKW.1GAOHS51ANI12@souji-thenria.net> References: <20240420091633.00002f24@seibercom.net> <20240420153432.671268909CE2@ary.qy> <CAMtcK2pTKSHpOCKhEdWSvLyT1fBvjm50zZ8LhF-jbDjmFzBJGA@mail.gmail.com> <D0PEG8P8AFKW.1GAOHS51ANI12@souji-thenria.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <mail@souji-thenria.n= et> 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 <div dir=3D"ltr">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</div><br><div class=3D"gm= ail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Apr 20, 2024 at 6:= 11=E2=80=AFPM Souji Thenria <<a href=3D"mailto:mail@souji-thenria.net">m= ail@souji-thenria.net</a>> wrote:<br></div><blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-st= yle:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Sat Apr 2= 0, 2024 at 10:29 PM BST, paul beard wrote:<br> > 00 00 * * Sun=C2=A0 =C2=A0python -c 'import random; import time;<b= r> > time.sleep(random.random() * 3600)' && /usr/local/bin/cert= bot renew<br> > --renew-hook 'service nginx reload'<br> <br> Hi Paul,<br> <br> Out of pure curiosity:<br> Is there a reason why you sleep for a random number of hours (supposed<br> time.sleep() takes seconds as input parameter) before executing the<br> certbot?<br> <br> Regards,<br> Souji<br> <br> </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Pa= ul Beard / <a href=3D"http://www.paulbeard.org/" target=3D"_blank">www.paul= beard.org/</a><br></div> --0000000000008ab56a0616912e54--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMtcK2qfRBrOAuWBm1gLEPRc8pDTQx0jOgKJ06d_B6HqrCA7JQ>