I've seen this a lot with docker/containerd. It seems as if for some reason systemd doesn't wait for their cgroups to cleaned up on shutdown. It's very easy to reproduce. Start a docker container and then power off the machine. Since the move to cgroups V2 containerd should be using systemd to manage the cgroup tree so a bit puzzling why it's always happening.
Something seems to be off with containerd's integration into systemd but I'm not sure what.
On Wed, 2 Mar 2022, 12:30 Manuel Wagesreither, <ManWag@xxxxxxxxxxx> wrote:
Hi all,
My embedded system is shutting down rather slow, and I'd like to find out the responsible processes.
[ 7668.571133] systemd-shutdown[1]: Waiting for process: dockerd, python3
[ 7674.670684] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
Is there a way for systemd-shutdown to give me the PID of the processes it waits for?
There are quite a few docker and python3 services running on my system and the lines printed above doesn't help much.
I'm using systemd 244 (244.5+).
Thanks,
Manuel