Skip to content

Instantly share code, notes, and snippets.

@itay-grudev
Last active April 4, 2019 01:08
Show Gist options
  • Save itay-grudev/9457394b5f4b82f0d9309a9a15872c39 to your computer and use it in GitHub Desktop.
Save itay-grudev/9457394b5f4b82f0d9309a9a15872c39 to your computer and use it in GitHub Desktop.
certbot-auto systemd timer
[Unit]
Description=Renew SSL certificates via Lets Encrypt using certbot-auto
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/certbot-auto renew
[Unit]
Description=Renew SSL certificates via Lets Encrypt using certbot-auto
[Timer]
OnCalendar=*-*-* 09:53:21 # REPLACE THIS TIME WITH A RANDOM VALUE
Persistent=true
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment