Re: certbot
- In reply to: paul beard : "Re: certbot"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Apr 2024 01:40:44 UTC
On Sun Apr 21, 2024 at 2:24 AM BST, paul beard wrote: > 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 > > > > Oh true, that makes sense. Thanks, Souji