Last active
March 20, 2020 08:44
-
-
Save nomaster/35ff03f542c8452d0d0ee885f0a82afe to your computer and use it in GitHub Desktop.
systemd service for certbot
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=oneshot | |
ExecStart=/usr/local/sbin/certbot-auto renew | |
ExecStartPost=/usr/bin/systemctl reload nginx.service |
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=Daily renewal of Let's Encrypt certificates | |
[Timer] | |
OnCalendar=daily | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment