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:
parent
d12dd340b6
commit
0de3a0cff3
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user