diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2018-01-09 17:19:13 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2018-01-09 17:25:18 +0100 |
commit | 4bc4c0883885f170d08ad47a8019bde7209d10f4 (patch) | |
tree | 85804551bdab10213abce9c2a6bba277af74903f /nixos | |
parent | 3ab85ed1aca250501bcd098f5c304e3ddde96e79 (diff) |
nixos/kresd: service nitpicks
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/kresd.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/kresd.nix b/nixos/modules/services/networking/kresd.nix index 7e36c69cc4e39..011a9b2f58ea0 100644 --- a/nixos/modules/services/networking/kresd.nix +++ b/nixos/modules/services/networking/kresd.nix @@ -72,6 +72,7 @@ in (iface: if elem ":" (stringToCharacters iface) then "[${iface}]:53" else "${iface}:53") cfg.interfaces; socketConfig.ListenDatagram = listenStreams; + socketConfig.FreeBind = true; }; systemd.sockets.kresd-control = rec { @@ -82,7 +83,7 @@ in socketConfig = { FileDescriptorName = "control"; Service = "kresd.service"; - SocketMode = "0660"; # only root user/group may connect + SocketMode = "0660"; # only root user/group may connect and control kresd }; }; @@ -95,6 +96,7 @@ in User = "kresd"; Type = "notify"; WorkingDirectory = cfg.cacheDir; + Restart = "on-failure"; }; script = '' |