Re: atop package

2023-12-14 Thread Marc Haber
On Thu, Dec 14, 2023 at 11:10:14AM +0530, jai wrote:
> *root@dummyhost:~# systemctl status atopacct.service● atopacct.service -
> Atop process accounting daemon   Loaded: loaded
> (/lib/systemd/system/atopacct.service; enabled; vendor preset: enabled)
>  Active: failed (Result: protocol) since Thu 2023-12-14 12:10:00 WIB; 49s
> ago Docs: man:atopacctd(8)Dec 14 12:10:00 smartpesantren2 systemd[1]:
> Starting Atop process accounting daemon...Dec 14 12:10:00 smartpesantren2
> atopacctd[367437]: /run/pacct_shadow.d: File existsDec 14 12:10:00
> smartpesantren2 systemd[1]: atopacct.service: Can't open PID file
> /run/atopacctd.pid (yet?) after start: No such file or directoryDec 14
> 12:10:00 smartpesantren2 systemd[1]: atopacct.service: Failed with result
> 'protocol'.Dec 14 12:10:00 smartpesantren2 systemd[1]: Failed to start Atop
> process accounting daemon.*

This formatting is completely mangled, what are you doing there?

> The systemctl status shows error that /run/atopacctd.pid is missing.
> I executed "ln -s /run/atop.pid /run/atopacctd.pid" to create symlink of
> atopacctd.pid from atop.pid and then restarted the atopacct.service which
> fixed the problem.

atop and atopacctd are different daemons that happen to come from the
same package. Symlinking one pidfile to the other is like to cause other
problems than the one you seem to "solve".

> But is this the proper way to solve this issue?

The proper way would be to ask the maintainers of the atop package
you're using, and not to complain on the _development_ mailing list of a
nearly unrelated upstream project.

It would at least help if you mention the version of the package you're
using.

Greetings
Marc

P.S.: I happen to be the maintainer of the atop package in Debian, the
distribution that Ubuntu uses as a technical base. The package you're
using is likely to closely resemble what I built for Debian, but
I never saw that kind of misbehavior.

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421


atop package

2023-12-13 Thread jai
In ubuntu 18, I am not able to install anything using apt package manager
because of atop package.











*root@dummyhost:~# systemctl status atopacct.service● atopacct.service -
Atop process accounting daemon   Loaded: loaded
(/lib/systemd/system/atopacct.service; enabled; vendor preset: enabled)
 Active: failed (Result: protocol) since Thu 2023-12-14 12:10:00 WIB; 49s
ago Docs: man:atopacctd(8)Dec 14 12:10:00 smartpesantren2 systemd[1]:
Starting Atop process accounting daemon...Dec 14 12:10:00 smartpesantren2
atopacctd[367437]: /run/pacct_shadow.d: File existsDec 14 12:10:00
smartpesantren2 systemd[1]: atopacct.service: Can't open PID file
/run/atopacctd.pid (yet?) after start: No such file or directoryDec 14
12:10:00 smartpesantren2 systemd[1]: atopacct.service: Failed with result
'protocol'.Dec 14 12:10:00 smartpesantren2 systemd[1]: Failed to start Atop
process accounting daemon.*

The systemctl status shows error that /run/atopacctd.pid is missing.
I executed "ln -s /run/atop.pid /run/atopacctd.pid" to create symlink of
atopacctd.pid from atop.pid and then restarted the atopacct.service which
fixed the problem.
But is this the proper way to solve this issue?