Skip to content

Instantly share code, notes, and snippets.

@timothymarois
Created July 25, 2020 18:57
Show Gist options
  • Save timothymarois/40e9fca8b0d08555b7aa410764c58bdd to your computer and use it in GitHub Desktop.
Save timothymarois/40e9fca8b0d08555b7aa410764c58bdd to your computer and use it in GitHub Desktop.
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
0 */12 * * * root certbot renew --server https://acme-v02.api.letsencrypt.org/directory --non-interactive --post-hook "sudo service httpd restart"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment