Re: certbot
- Reply: Souji Thenria: "Re: certbot"
- In reply to: Souji Thenria: "Re: certbot"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Apr 2024 01:24:15 UTC
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/