Your message dated Tue, 9 Nov 2021 07:07:29 -0800
with message-id <[email protected]>
and subject line Re: Bug#998439: invalidate caches on package removal
has caused the Debian Bug report #998439,
regarding invalidate caches on package removal
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
998439: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998439
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: unscd
Version: 0.54-1

The unscd.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

--- End Message ---
--- Begin Message ---
On Thu, 04 Nov 2021, Harald Dunkel wrote:
> The unscd.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.

This looks like something left over from nscd, not unscd. None of this
should be necessary for unscd, as unscd doesn't cache services, hosts,
or netgroup. [There's generally no need to cache services and DNS caches
hosts just fine.]

unscd also doesn't need to cache invalidate when it stops, as any
application using unscd only connects via its socket, and when it's
stopped, connections to the socket should fail.

> You might want to consider to move /var/cache/nscd to /run.

The only place unscd should have stuff is
/var/run/nscd/{socket,nscd.pid}.

[If I've totally missed something, and this really is unscd creating
this, feel free to reopen, but I'm not seeing the parts in the code
where it would create these cache files.]

-- 
Don Armstrong                      https://www.donarmstrong.com

I learned really early the difference between knowing the name of
something and knowing something
 -- Richard Feynman "What is Science" Phys. Teach. 7(6) 1969

--- End Message ---

Reply via email to