Updates to fix certbot.service issues reloading

This commit is contained in:
DarkFeather 2022-10-01 23:54:40 -05:00
parent 12d2ca9a1d
commit a43cb4b6bb
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,8 @@ Description=Certbot
[Service]
ExecStart=certbot renew -w /var/lib/letsencrypt/ --preferred-chain "ISRG Root X1"
ExecStartPost=/usr/bin/systemctl reload openresty
ExecStartPost=-/usr/bin/systemctl reload webserver
ExecStartPost=-/usr/bin/systemctl reload irc
KillMode=process
Type=oneshot
RemainAfterExit=no

View File

@ -22,6 +22,7 @@
- name: Enable timer
when: services.changed
become: yes
systemd:
daemon_reload: yes
name: certbot.timer