Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
I think I saw that in the docs…I 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 PM Souji Thenria <mail@souji-thenria.net>
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
>
>

-- 
Paul Beard / www.paulbeard.org/

[-- Attachment #2 --]
<div dir="ltr">I think I saw that in the docs…I could never have come up with that on my own. I think it&#39;s to reduce any spikes (like midnight as it crosses time zones). </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 20, 2024 at 6:11 PM Souji Thenria &lt;<a href="mailto:mail@souji-thenria.net">mail@souji-thenria.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Sat Apr 20, 2024 at 10:29 PM BST, paul beard wrote:<br>
&gt; 00 00 * * Sun   python -c &#39;import random; import time;<br>
&gt; time.sleep(random.random() * 3600)&#39; &amp;&amp; /usr/local/bin/certbot renew<br>
&gt; --renew-hook &#39;service nginx reload&#39;<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="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Paul Beard / <a href="http://www.paulbeard.org/" target="_blank">www.paulbeard.org/</a><br></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMtcK2qfRBrOAuWBm1gLEPRc8pDTQx0jOgKJ06d_B6HqrCA7JQ>