diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2022-06-11 05:03:22 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2022-06-11 05:03:44 +0000 |
commit | f2fee93a6b1c98e4912ee99a62729ed986f8a929 (patch) | |
tree | ee277b8fa8cbc11c52487369fba8d197d35ba359 /dehydrated/share | |
parent | Releasing version 20220609. (diff) | |
download | service-tools-f2fee93a6b1c98e4912ee99a62729ed986f8a929.tar.xz service-tools-f2fee93a6b1c98e4912ee99a62729ed986f8a929.zip |
Only restarting kresd in dehydrated exit_hook.service-reload if tls is configured.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.service-reload | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload index ebe2d23..060f81a 100755 --- a/dehydrated/share/hooks/exit_hook.service-reload +++ b/dehydrated/share/hooks/exit_hook.service-reload @@ -37,7 +37,7 @@ do fi done -if service kresd@1 status > /dev/null 2>&1 +if grep -r -qs '^net.tls' /etc/knot-resolver/* && service kresd@1 status > /dev/null 2>&1 then NUMBER="$(systemctl | grep -c 'kresd@[0-9].service')" |