From f2fee93a6b1c98e4912ee99a62729ed986f8a929 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 11 Jun 2022 07:03:22 +0200 Subject: Only restarting kresd in dehydrated exit_hook.service-reload if tls is configured. Signed-off-by: Daniel Baumann --- dehydrated/share/hooks/exit_hook.service-reload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dehydrated/share') 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')" -- cgit v1.2.3