Bug#324900: nscd: umount /var fails (unclean shutdowns)
Daniel Jacobowitz <drow@false.org> writes:
> On Thu, Aug 25, 2005 at 05:53:05PM +0200, Zlatko Calusic wrote:
>> GOTO Masanori <gotom@debian.or.jp> writes:
>>
>> > At Thu, 25 Aug 2005 12:56:04 +0200,
>> > Zlatko Calusic wrote:
>> >> rc 1119 root mem REG 8,9 217016 228931 /var/db/nscd/passwd
>
> Note, this is a long-running bash. Not many people use file-rc (that's
> what this is, right?)
Nope, I don't use file-rc. Just plain old initscripts. Definitely no
long running bashes here.
% dpkg -l file-rc initscripts
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
pn file-rc <none> (no description available)
ii initscripts 2.86.ds1-1.1 Standard scripts needed for booting and shut
>
> Does glibc open the nscd cache files directly rather than communicating
> with it via a socket? Or does it communicate via shared memory?
Huh, you'll need to help me with this question. As far as I see, there
is valid /var/run/nscd/socket which is open by many processes:
[/var/run/nscd]# lsof socket
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
dbus-daem 431 messagebus 5u unix 0xef8eb5c0 1399 socket
dbus-daem 431 messagebus 6u unix 0xef8eb720 1400 socket
rpc.statd 640 nobody 3u unix 0xef8ebe00 1843 socket
...
Files in /var/db/nscd are also mapped to many processes:
[/var/db/nscd]# lsof passwd
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
nscd 392 root mem REG 8,9 217016 228931 passwd
nscd 392 root 3u REG 8,9 217016 228931 passwd
nscd 392 root 4r REG 8,9 217016 228931 passwd
dbus-daem 431 messagebus mem REG 8,9 217016 228931 passwd
inetutils 440 root mem REG 8,9 217016 228931 passwd
...
So my answer to your question would be: both.
Regards,
--
Zlatko
Reply to: