summaryrefslogtreecommitdiffstats
path: root/dehydrated/share/hooks/exit_hook.service-reload
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2022-06-11 05:03:22 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2022-06-11 05:03:44 +0000
commitf2fee93a6b1c98e4912ee99a62729ed986f8a929 (patch)
treeee277b8fa8cbc11c52487369fba8d197d35ba359 /dehydrated/share/hooks/exit_hook.service-reload
parentReleasing version 20220609. (diff)
downloadservice-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 'dehydrated/share/hooks/exit_hook.service-reload')
-rwxr-xr-xdehydrated/share/hooks/exit_hook.service-reload2
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')"