Skip to content

Instantly share code, notes, and snippets.

@nomaster
Last active March 20, 2020 08:44
Show Gist options
  • Save nomaster/35ff03f542c8452d0d0ee885f0a82afe to your computer and use it in GitHub Desktop.
Save nomaster/35ff03f542c8452d0d0ee885f0a82afe to your computer and use it in GitHub Desktop.
systemd service for certbot
[Unit]
Description=Renew Let's Encrypt certificates
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/certbot-auto renew
ExecStartPost=/usr/bin/systemctl reload nginx.service
[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