nscd-invalidate: Invalidate passwd and group databases also

I had some problems with LDAP user lookups not working properly
at boot. I found that invalidating passwd and group on the
ip-up event (when nscd-invalidate starts) helped a bit.
This commit is contained in:
Rickard Nilsson 2012-09-14 00:39:11 +02:00
parent d12dd340b6
commit 0de3a0cff3

View File

@ -64,7 +64,12 @@ in
description = "Invalidate NSCD cache";
startOn = "ip-up or config-changed";
task = true;
exec = "${pkgs.glibc}/sbin/nscd --invalidate hosts";
path = [ pkgs.glibc ];
exec = ''
nscd --invalidate=passwd
nscd --invalidate=group
nscd --invalidate=hosts
'';
};
};