Skip to content

Instantly share code, notes, and snippets.

@ishults
Last active July 12, 2016 19:54
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 ishults/0c69a15f9e8a172b428ecc1d1d8bc3f8 to your computer and use it in GitHub Desktop.
Save ishults/0c69a15f9e8a172b428ecc1d1d8bc3f8 to your computer and use it in GitHub Desktop.
crontab -e
# Add this. x is the minute of renewal, while y and z are the hours.
# You can (should) move the command into a script and run that.
x y,z * * * sudo service nginx stop && letsencrypt renew --quiet && sudo service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment