Fix unit types and dependency

This commit is contained in:
Jason Rothstein 2021-10-31 17:51:02 -05:00
parent 1a8d3e7ae2
commit 872f7633a0
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,9 @@
[Unit]
Description=Reload Apache
Description=Reload Apache for Let's Encrypt Certificate Insert
[Service]
Type=onshot
Type=oneshot
ExecStart=/bin/systemctl reload httpd.service
[Install]
WantedBy=httpd.service

View File

@ -1,5 +1,8 @@
[Unit]
Description=Reload Apache for Let's Encrypt Certificate Insert
[Timer]
OnUnitActiveSec=5min
[Install]
WantedBy=timer.target
WantedBy=httpd.service