Difference between revisions of "/etc/cron.d/certbot"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
  SHELL=/bin/sh
 
  SHELL=/bin/sh
 
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
+
  0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' &&  
+
  0 */12 * * * root [[test -x]] /usr/bin/certbot -a \! -d /run/systemd/system && perl -e '[[sleep]] int(rand(43200))' &&  
  certbot -q renew
+
  [[certbot -q renew]]
  
  
 +
== Related terms ==
 +
* <code>[[certbot.service]]</code>
 +
* <code>[[certbot.timer]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 08:13, 5 May 2021

/etc/cron.d/certbot


# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc.  Renewal will only occur if expiration
# is within 30 days.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && 
certbot -q renew


Related terms[edit]

See also[edit]

Advertising: