diff options
| author | Félix Sipma <felix.sipma@no-log.org> | 2015-09-17 09:13:13 +0200 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-09-17 13:20:50 -0400 |
| commit | 8cea12ce1a799175a7922b642591e1352826d17e (patch) | |
| tree | b2a46f75fb6ea54d15de4e7243f793d5aa07826d /src | |
| parent | 19834cdd911629876e173cbd2e8e4889f117e7ed (diff) | |
Unbound: restart unbound when config in cachingDnsServer is modified
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Unbound.hs | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
