Bug#998438: invalidate caches on package removal
Package: nscd
Version: 2.31-13+deb11u2
The nscd.prerm script should cleanup the caches
nscd -i {group,hosts,netgroup,passwd,services}
rm -f /var/cache/nscd/{group,hosts,netgroup,passwd,services}
to invalidate and remove all caches, before the service is stopped
and removed.
The nscd -i is necessary to tell running processes about the change.
They might keep these cache files open with a local file descriptor,
even if they are erased.
You might want to consider to move /var/cache/nscd to /run.
Regards
Harri
Reply to: