From 1015ede5f4291053e1a14aa03f7ccc9a64135905 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Tue, 10 Dec 2024 23:43:31 +0100 Subject: [PATCH] containerd: add After=dbus.service This is needed for shutdown ordering: while at startup, it's not a problem that containerd start before dbus (the dbus socket already exists) it needs to shutdown before dbus to do its cleanup (asking systemd via dbus to cleanup cgroups). --- .../container-engine/containerd/templates/containerd.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/container-engine/containerd/templates/containerd.service.j2 b/roles/container-engine/containerd/templates/containerd.service.j2 index 06b22908475..fbb950acef9 100644 --- a/roles/container-engine/containerd/templates/containerd.service.j2 +++ b/roles/container-engine/containerd/templates/containerd.service.j2 @@ -15,7 +15,7 @@ [Unit] Description=containerd container runtime Documentation=https://containerd.io -After=network.target local-fs.target +After=network.target local-fs.target dbus.service [Service] ExecStartPre=-/sbin/modprobe overlay