From 8cea12ce1a799175a7922b642591e1352826d17e Mon Sep 17 00:00:00 2001 From: Félix Sipma Date: Thu, 17 Sep 2015 09:13:13 +0200 Subject: Unbound: restart unbound when config in cachingDnsServer is modified Signed-off-by: Félix Sipma --- src/Propellor/Property/Unbound.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Propellor/Property/Unbound.hs') diff --git a/src/Propellor/Property/Unbound.hs b/src/Propellor/Property/Unbound.hs index 68703dfd..6edb8b8b 100644 --- a/src/Propellor/Property/Unbound.hs +++ b/src/Propellor/Property/Unbound.hs @@ -54,6 +54,7 @@ config = "/etc/unbound/unbound.conf.d/propellor.conf" cachingDnsServer :: [UnboundSection] -> [UnboundZone] -> [UnboundHost] -> Property NoInfo cachingDnsServer sections zones hosts = config `hasContent` (comment : otherSections ++ serverSection) + `onChange` restarted where comment = "# deployed with propellor, do not modify" serverSection = genSection (fromMaybe ("server", []) $ find ((== "server") . fst) sections) -- cgit v1.2.3