From 872f7633a0bcb270fdada0e3586003270ae0fadf Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Sun, 31 Oct 2021 17:51:02 -0500 Subject: [PATCH] Fix unit types and dependency --- .../Fedora/34/usr/lib/systemd/system/httpd-reload.service | 7 +++++-- .../Fedora/34/usr/lib/systemd/system/httpd-reload.timer | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.service b/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.service index a98c5e5..baf9c71 100644 --- a/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.service +++ b/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.service @@ -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 diff --git a/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.timer b/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.timer index d950936..4a45a99 100644 --- a/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.timer +++ b/templates/Fedora/34/usr/lib/systemd/system/httpd-reload.timer @@ -1,5 +1,8 @@ +[Unit] +Description=Reload Apache for Let's Encrypt Certificate Insert + [Timer] OnUnitActiveSec=5min [Install] -WantedBy=timer.target +WantedBy=httpd.service