X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=all_new_2018%2Flinkable_etc_files%2Fweb%2Fetc%2Fsystemd%2Fsystem%2Fcertbot.service;h=0d20d1fa56104f71f22479b48b50bcc09f80d135;hb=fc8eea5a9cbbaa968330bf5240de18db7a374e42;hp=122e7c19969af3f5f5b4cdd03e860a725dab9f0b;hpb=96d8dcb5e35145324d2b4dc53d8cbed723beedd2;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