Skip to content

Instantly share code, notes, and snippets.

@duderamos
Created May 23, 2017 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duderamos/32f5806553e5653d651f258a510cb999 to your computer and use it in GitHub Desktop.
Save duderamos/32f5806553e5653d651f258a510cb999 to your computer and use it in GitHub Desktop.
# letsencrypt.service
[Unit]
Description=Renew Letsencrypt certificates
[Service]
Type=simple
ExecStart=/usr/bin/letsencrypt renew -n --no-self-upgrade
# letsencrypt.timer
[Unit]
Description=Runs letsencrypt renewal every day
[Timer]
OnBootSec=10min
OnUnitActiveSec=1h
Unit=letsencrypt.service
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment