Last active
July 16, 2016 13:04
-
-
Save kipyegonmark/f92cc23b6517099660aae274c3043953 to your computer and use it in GitHub Desktop.
Let's Encrypt certificate update using systemd timers
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
[Unit] | |
Description=Renew Let's Encrypt certificates | |
[Service] | |
Type=simple | |
ExecStart=renew-certificate.sh |
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
#!/bin/sh | |
apachectl stop | |
certbot renew --quiet | |
apachectl start |
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
[Unit] | |
Description=Monthly renewal of Let's Encrypt's certificates | |
[Timer] | |
# once a month | |
OnCalendar=monthly | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment