On Thu, Dec 23, 2021 at 07:48:19PM +0100, Marc Haber wrote: > The interesting line of code is > > deb-systemd-invoke $_dh_action 'atop-rotate.service' 'atop-rotate.timer' > 'atop.service' 'atopacct.service > > which will instruct systemd to start all those four services. I am not > sure whether it makes sense for atop to explicitly start the two > atop-rotate units, and I think that systemd decides by itself in which > order the units are started.
The atopacct unit (systemctl cat atopacct) has an explicit "Before: atop.service" listed. So, systemd SHOULD take care of starting atopacctd first before atop is started. Can you please verify (maybe from syslog?) that the start order is actually wrong when you encounter the situation of misbehavior? Just two possibly stupid questions: (1) are you actually running systemd as PID 1 or did you decide to still use sysv init? (2) psacct is installed or not? Greetings Marc -- ----------------------------------------------------------------------------- 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