cc-containerd: run shutdown helper from shutdown.target

The shutdown helper was installed and enabled, but during reboot it was
never started.
Hook the helper directly into shutdown.target.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2026-05-04 18:37:00 +02:00
parent f1d71fd66c
commit f9da8e8db6
2 changed files with 5 additions and 6 deletions

View File

@ -3,14 +3,11 @@ Description=Stop managed containers during system shutdown
DefaultDependencies=no
After=cc-containerd.service network.target cccsd.service
Before=shutdown.target
Conflicts=shutdown.target
[Service]
Type=oneshot
ExecStart=/bin/true
ExecStop=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf --stop-managed-containers
RemainAfterExit=yes
TimeoutStopSec=30
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf --stop-managed-containers
TimeoutStartSec=10
[Install]
WantedBy=multi-user.target
WantedBy=shutdown.target

View File

@ -2,6 +2,8 @@
Description=Digi ConnectCore Container Manager daemon
After=network.target cccsd.service
Wants=network.target cccsd.service
Before=shutdown.target
Conflicts=shutdown.target
[Service]
Type=simple