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:
parent
1b6474935d
commit
0f54b5a346
|
|
@ -6,6 +6,8 @@ Wants=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container/cc-container-mng.conf
|
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
|
Restart=on-failure
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue