X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;ds=sidebyside;f=all_new_2018%2Flinkable_etc_files%2Fweb%2Fetc%2Fsystemd%2Fsystem%2Fcertbot.service;h=0d20d1fa56104f71f22479b48b50bcc09f80d135;hb=fc8eea5a9cbbaa968330bf5240de18db7a374e42;hp=122e7c19969af3f5f5b4cdd03e860a725dab9f0b;hpb=acc4cdb47d70491d2e524f7ae72114f286296eda;p=config
diff --git a/all_new_2018/linkable_etc_files/web/etc/systemd/system/certbot.service b/all_new_2018/linkable_etc_files/web/etc/systemd/system/certbot.service
index 122e7c1..0d20d1f 100644
--- a/all_new_2018/linkable_etc_files/web/etc/systemd/system/certbot.service
+++ b/all_new_2018/linkable_etc_files/web/etc/systemd/system/certbot.service
@@ -3,6 +3,9 @@ Description=Certbot
Documentation=file:///usr/share/doc/python-certbot-doc/html/index.html
Documentation=https://letsencrypt.readthedocs.io/en/latest/
[Service]
+# plomlompom added the --webroot -w /var/www/html/ so that renewal
+# works with nginx running, and the nginx reload post-hook so that
+# the new certificates are linked to by nginx.
Type=oneshot
-ExecStart=/usr/bin/certbot -q renew --webroot -w /var/www/html/
-PrivateTmp=true
+ExecStart=/usr/bin/certbot -q renew --webroot -w /var/www/html/ --post-hook "service nginx reload"
+PrivateTmp=true
\ No newline at end of file