Created
September 18, 2018 19:17
-
-
Save dcode/11129baa54c6ba38facdf99011088379 to your computer and use it in GitHub Desktop.
Run certbot twice daily to ensure we never lose a valid cert.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/certbot.service | |
[Unit] | |
Description=Certbot Renewal | |
[Service] | |
ExecStart=/usr/bin/certbot renew --post-hook "systemctl restart httpd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/certbot.timer | |
[Unit] | |
Description=Run certbot twice daily | |
[Timer] | |
OnCalendar=*-*-* 00,12:00:00 | |
RandomizedDelaySec=3600 | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment