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 <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2026-03-18 12:06:03 +01:00
parent 1b6474935d
commit 0f54b5a346
1 changed files with 2 additions and 0 deletions

View File

@ -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