diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-01-03 09:26:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-19 11:10:27 +0000 |
commit | f87ddc4f8c5ae38fe15022f6ee51fce8b774f730 (patch) | |
tree | d09e5f011bc2fc0a7bd34bfb93181fdb68d58c5e /dehydrated/share/hooks/exit_hook.service-reload | |
parent | Adding git-pull-branches in git-tools. (diff) | |
download | service-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 'dehydrated/share/hooks/exit_hook.service-reload')
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.service-reload | 3 |
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 } |