summaryrefslogtreecommitdiffstats
path: root/dehydrated/share/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-01-03 09:26:59 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-02-19 11:10:27 +0000
commitf87ddc4f8c5ae38fe15022f6ee51fce8b774f730 (patch)
treed09e5f011bc2fc0a7bd34bfb93181fdb68d58c5e /dehydrated/share/hooks
parentAdding git-pull-branches in git-tools. (diff)
downloadservice-tools-f87ddc4f8c5ae38fe15022f6ee51fce8b774f730.tar.xz
service-tools-f87ddc4f8c5ae38fe15022f6ee51fce8b774f730.zip
Completely stop and start apache in dehydrated hook to ensure OCSP renewals.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xdehydrated/share/hooks/exit_hook.service-reload3
1 files changed, 2 insertions, 1 deletions
diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload
index cf297ab..c62c133 100755
--- a/dehydrated/share/hooks/exit_hook.service-reload
+++ b/dehydrated/share/hooks/exit_hook.service-reload
@@ -25,7 +25,8 @@ Run_apache2 ()
{
if grep -Eqrs '^ *SSLCertificateFile' /etc/apache2/sites-enabled
then
- service apache2 reload
+ service apache2 stop
+ service apache2 start
fi
}