Skip to content

Instantly share code, notes, and snippets.

@koi-chan
Last active September 6, 2016 08:42
Show Gist options
  • Save koi-chan/607e7a55167f40d9ee3e3d60dfaa2806 to your computer and use it in GitHub Desktop.
Save koi-chan/607e7a55167f40d9ee3e3d60dfaa2806 to your computer and use it in GitHub Desktop.
[Unit]
Description=Let's Encrypt renewal
[Service]
Type=oneshot
ExecStart=/usr/local/bin/certbot-auto renew --standalone --pre-hook 'systemctl stop nginx' --post-hook 'systemctl start nginx'
ExecStartPost=/bin/systemctl reload charybdis.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment