networking/netns: set NSNCD_SOCKET_PATH
for nsncd
This commit is contained in:
parent
e54ad53ab8
commit
886f8c4031
|
@ -53,7 +53,6 @@ in
|
||||||
"/etc/netns/${name}/nsswitch.conf:/etc/nsswitch.conf:norbind"
|
"/etc/netns/${name}/nsswitch.conf:/etc/nsswitch.conf:norbind"
|
||||||
"/etc/netns/${name}/gai.conf:/etc/gai.conf:norbind"
|
"/etc/netns/${name}/gai.conf:/etc/gai.conf:norbind"
|
||||||
];
|
];
|
||||||
BindPaths = [ "/run/${name}/nscd:/run/nscd:norbind" ];
|
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
|
@ -62,7 +61,10 @@ in
|
||||||
RuntimeDirectoryPreserve = true;
|
RuntimeDirectoryPreserve = true;
|
||||||
ExecStart = "${pkgs.nsncd}/bin/nsncd";
|
ExecStart = "${pkgs.nsncd}/bin/nsncd";
|
||||||
};
|
};
|
||||||
environment.LD_LIBRARY_PATH = config.system.nssModules.path;
|
environment = {
|
||||||
|
LD_LIBRARY_PATH = config.system.nssModules.path;
|
||||||
|
NSNCD_SOCKET_PATH = "/run/${name}/nscd/socket";
|
||||||
|
};
|
||||||
before = [ "netns-${name}-mntns.service" ];
|
before = [ "netns-${name}-mntns.service" ];
|
||||||
after = [
|
after = [
|
||||||
"netns-${name}.service"
|
"netns-${name}.service"
|
||||||
|
|
Loading…
Reference in a new issue