On Thu, Nov 25, 2021 at 08:08:53PM +0800, 李菲 wrote: > In short, build => install => check (no restart) should work.
I apologize, but I don't see the problem here: [15/4605]mh@testsid85:~ $ sudo apt install atop Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: atop 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 201 kB of archives. After this operation, 511 kB of additional disk space will be used. Get:1 http://debian.debian.zugschlus.de/debian sid/main amd64 atop amd64 2.6.0-2 [201 kB] Fetched 201 kB in 0s (1.836 kB/s) Selecting previously unselected package atop. (Reading database ... 32406 files and directories currently installed.) Preparing to unpack .../atop_2.6.0-2_amd64.deb ... Unpacking atop (2.6.0-2) ... Setting up atop (2.6.0-2) ... Created symlink /etc/systemd/system/timers.target.wants/atop-rotate.timer → /lib/systemd/system/atop-rotate.timer. Created symlink /etc/systemd/system/multi-user.target.wants/atop.service → /lib/systemd/system/atop.service. Created symlink /etc/systemd/system/multi-user.target.wants/atopacct.service → /lib/systemd/system/atopacct.service. atop-rotate.service is a disabled or a static unit, not starting it. Processing triggers for man-db (2.9.4-2) ... [16/4606]mh@testsid85:~ $ sudo ls -la /proc/$(pgrep '^atop$')/fd /proc/$(pgrep '^atopacctd$')/fd /proc/43189/fd: total 0 dr-x------ 2 root root 0 Nov 28 21:40 . dr-xr-xr-x 9 root root 0 Nov 28 21:40 .. lr-x------ 1 root root 64 Nov 28 21:40 0 -> /run/pacct_source l-wx------ 1 root root 64 Nov 28 21:40 1 -> /run/pacct_shadow.d/0000000000.paf lrwx------ 1 root root 64 Nov 28 21:40 2 -> 'socket:[219557]' l-wx------ 1 root root 64 Nov 28 21:40 3 -> /run/pacct_shadow.d/current lrwx------ 1 root root 64 Nov 28 21:40 4 -> 'socket:[219561]' lrwx------ 1 root root 64 Nov 28 21:40 5 -> 'socket:[219562]' /proc/43192/fd: total 0 dr-x------ 2 root root 0 Nov 28 21:40 . dr-xr-xr-x 9 root root 0 Nov 28 21:40 .. lr-x------ 1 root root 64 Nov 28 21:40 0 -> /dev/null lrwx------ 1 root root 64 Nov 28 21:40 1 -> 'socket:[219563]' lrwx------ 1 root root 64 Nov 28 21:40 2 -> 'socket:[219563]' lr-x------ 1 root root 64 Nov 28 21:40 3 -> /run/pacct_shadow.d/0000000000.paf lrwx------ 1 root root 64 Nov 28 21:40 4 -> 'socket:[218991]' l-wx------ 1 root root 64 Nov 28 21:40 5 -> /var/log/atop/atop_20211128 [17/4607]mh@testsid85:~ $ I see that on my system fds 1 and 2 are a socket while yours are files, and that fd3 is correctly the /run/pacct_shadow.d file. Am I still doing things wrong here? Greetings Marc