forked from mirrors/nixpkgs
nixos/kresd: service nitpicks
This commit is contained in:
parent
3ab85ed1ac
commit
4bc4c08838
1 changed files with 3 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue