nscd: use proper systemd.special(7) targets

This commit is contained in:
Mathijs Kwik 2012-12-27 10:04:05 +01:00
parent 3456f3b232
commit 244ed6ae71
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ in
boot.systemd.services.nscd =
{ description = "Name Service Cache Daemon";
wantedBy = [ "multi-user.target" ];
wantedBy = [ "nss-lookup.target" "nss-user-lookup.target" ];
environment = { LD_LIBRARY_PATH = nssModulesPath; };

View File

@ -321,7 +321,8 @@ let
ln -s ${cfg.defaultUnit} $out/default.target
#ln -s ../getty@tty1.service $out/multi-user.target.wants/
ln -s ../local-fs.target ../remote-fs.target ../network.target ../swap.target $out/multi-user.target.wants/
ln -s ../local-fs.target ../remote-fs.target ../network.target ../nss-lookup.target \
../nss-user-lookup.target ../swap.target $out/multi-user.target.wants/
''; # */
in