From e08ee09715dbd6f99e22ae746e6bbc2ffa3ea35a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 21 Dec 2023 10:14:42 +0000 Subject: [PATCH] Set a timeout for the DNS rebuild service --- cookbooks/dns/recipes/default.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index bad9e5943..f62af1550 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -173,6 +173,7 @@ systemd_service "dns-check" do description "Rebuild DNS zones with GeoDNS changes" exec_start "/usr/local/bin/dns-check" user "git" + runtime_max_sec 90 sandbox :enable_network => true proc_subset "all" read_write_paths "/var/lib/dns" -- 2.39.5