diff options
author | Clément Lassieur <clement@lassieur.org> | 2018-02-09 01:01:17 +0100 |
---|---|---|
committer | Clément Lassieur <clement@lassieur.org> | 2018-02-22 21:43:52 +0100 |
commit | 7ab04c17c01a926660cd1c9fa9311a5efc6716da (patch) | |
tree | a986582a9e9a5b16ffcb7f21568996ccb97b21f4 /gnu/services | |
parent | 70cd2239a567fe551bdbe368b1d2b9d9cf531d09 (diff) | |
download | patches-7ab04c17c01a926660cd1c9fa9311a5efc6716da.tar patches-7ab04c17c01a926660cd1c9fa9311a5efc6716da.tar.gz |
services: certbot: Run certbot twice a day at a random minute.
* doc/guix.texi (Certificate Services): Document it.
* gnu/services/certbot.scm (certbot-renewal-jobs): Change job's time
specification.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/certbot.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/services/certbot.scm b/gnu/services/certbot.scm index 91249ed3e3..1728d126f4 100644 --- a/gnu/services/certbot.scm +++ b/gnu/services/certbot.scm @@ -65,10 +65,10 @@ (() '()) (_ (list - ;; Attempt to renew the certificates twice a week. - #~(job (lambda (now) - (next-day-from (next-hour-from now '(3)) - '(2 5))) + ;; Attempt to renew the certificates twice per day, at a random + ;; minute within the hour. See + ;; https://certbot.eff.org/all-instructions/. + #~(job '(next-minute-from (next-hour '(0 12)) (list (random 60))) (string-append #$package "/bin/certbot renew" (string-concatenate (map (lambda (host) |