1 |
On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner <bog@××××××.net> wrote: |
2 |
> On Thu, 08 Mar 2012 17:56:18 +0200 |
3 |
> Nikos Chantziaras <realnc@×××××.de> wrote: |
4 |
> |
5 |
>> I discovered this nifty little tool recently that tells you if any |
6 |
>> deleted files are currently being kept open by running processes: |
7 |
>> "app-admin/checkrestart". I usually run it after world updates so I |
8 |
>> can tell whether I need a restart or not. |
9 |
> |
10 |
> Because I'm too lazy to unkeyword and emerge it... Does this program |
11 |
> show how much space is being used by deleted files? Or, is there a way |
12 |
> to access more information about or even recover such a zombie file? |
13 |
> lsof gives its inode number, but I have no idea how to access it from |
14 |
> there. |
15 |
|
16 |
I just ran it, here's the output: |
17 |
|
18 |
Found 22 processes using old versions of upgraded files |
19 |
(15 distinct programs) |
20 |
(14 distinct packages) |
21 |
|
22 |
Of these, 10 seem to contain init scripts which can be used to restart them: |
23 |
The following packages seem to have init scripts that could be used |
24 |
to restart them: |
25 |
sys-apps/smartmontools: |
26 |
5082 /usr/sbin/smartd |
27 |
sys-auth/consolekit: |
28 |
4384 /usr/sbin/console-kit-daemon |
29 |
app-text/dictd: |
30 |
4834 /usr/sbin/dictd |
31 |
sys-fs/mdadm: |
32 |
3742 /sbin/mdadm |
33 |
net-dns/unbound: |
34 |
4507 /usr/sbin/unbound |
35 |
net-print/cups: |
36 |
4767 /usr/sbin/cupsd |
37 |
sys-apps/dbus: |
38 |
4369 /usr/bin/dbus-daemon |
39 |
net-misc/ntp: |
40 |
4975 /usr/sbin/ntpd |
41 |
net-fs/samba: |
42 |
5015 /usr/sbin/smbd |
43 |
5045 /usr/sbin/smbd |
44 |
5021 /usr/sbin/nmbd |
45 |
app-crypt/ekeyd: |
46 |
4851 /usr/libexec/ekeyd |
47 |
|
48 |
These are the init scripts: |
49 |
/etc/init.d/smartd restart |
50 |
/etc/init.d/consolekit restart |
51 |
/etc/init.d/dictd restart |
52 |
/etc/init.d/mdraid restart |
53 |
/etc/init.d/mdadm restart |
54 |
/etc/init.d/unbound restart |
55 |
/etc/init.d/cupsd restart |
56 |
/etc/init.d/dbus restart |
57 |
/etc/init.d/ntpd restart |
58 |
/etc/init.d/ntp-client restart |
59 |
/etc/init.d/samba restart |
60 |
/etc/init.d/ekey-egd-linux restart |
61 |
/etc/init.d/ekeyd restart |
62 |
|
63 |
These processes do not seem to have an associated init script to restart them: |
64 |
sys-fs/udisks: |
65 |
5357 /usr/libexec/udisks-daemon |
66 |
5350 /usr/libexec/udisks-daemon |
67 |
sys-apps/util-linux: |
68 |
5223 /sbin/agetty |
69 |
5221 /sbin/agetty |
70 |
5222 /sbin/agetty |
71 |
5225 /sbin/agetty |
72 |
5224 /sbin/agetty |
73 |
27330 /sbin/agetty |
74 |
sys-power/upower: |
75 |
5327 /usr/libexec/upowerd |
76 |
sys-auth/polkit: |
77 |
4467 /usr/libexec/polkitd |