From 75e12e8981a669392817c45a616cfee2cc12e0fa Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Wed, 11 Dec 2024 08:32:03 -0800 Subject: [PATCH] containerd: add After=dbus.service (#11784) 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). Co-authored-by: Max Gautier --- .../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 06b229084..fbb950ace 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