diff options
Diffstat (limited to 'dehydrated/share/hooks')
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.service-reload | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload index 8ae362d..cee1d98 100755 --- a/dehydrated/share/hooks/exit_hook.service-reload +++ b/dehydrated/share/hooks/exit_hook.service-reload @@ -34,3 +34,18 @@ do echo " done." fi done + +NUMBER="$(systemctl | grep -c 'kresd@[0-9].service')" + +if [ "${NUMBER}" -gt 0 ] +then + echo -n " + knot-resolver:" + + for NUMBER in $(seq 1 "${NUMBER}") + do + echo -n " #${NUMBER}" + service kresd@${NUMBER} restart + done + + echo " done." +fi |