From 0f54b5a346a9bdf82f513d5357302392ebaa15d5 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Wed, 18 Mar 2026 12:06:03 +0100 Subject: [PATCH] meta-digi-containers: keep containers running when cc-containerd stops Set KillMode=process in the systemd unit so 'systemctl stop cc-containerd' only terminates the daemon itself. Without this, systemd uses the default control-group kill mode and can terminate container processes that share the service cgroup, which changes container runtime state when the service is stopped. https://onedigi.atlassian.net/browse/DEL-9963 https://onedigi.atlassian.net/browse/DEL-10005 Signed-off-by: Isaac Hermida --- .../cc-container-mng/files/cc-containerd.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-digi-containers/recipes-containers/cc-container-mng/files/cc-containerd.service b/meta-digi-containers/recipes-containers/cc-container-mng/files/cc-containerd.service index b47da7d90..43962d1e6 100644 --- a/meta-digi-containers/recipes-containers/cc-container-mng/files/cc-containerd.service +++ b/meta-digi-containers/recipes-containers/cc-container-mng/files/cc-containerd.service @@ -6,6 +6,8 @@ Wants=network.target [Service] Type=simple ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container/cc-container-mng.conf +# Stop only the daemon process; keep managed containers running. +KillMode=process Restart=on-failure RestartSec=2