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:
parent
f1d71fd66c
commit
f9da8e8db6
|
|
@ -3,14 +3,11 @@ Description=Stop managed containers during system shutdown
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=cc-containerd.service network.target cccsd.service
|
After=cc-containerd.service network.target cccsd.service
|
||||||
Before=shutdown.target
|
Before=shutdown.target
|
||||||
Conflicts=shutdown.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/true
|
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf --stop-managed-containers
|
||||||
ExecStop=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf --stop-managed-containers
|
TimeoutStartSec=10
|
||||||
RemainAfterExit=yes
|
|
||||||
TimeoutStopSec=30
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=shutdown.target
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
Description=Digi ConnectCore Container Manager daemon
|
Description=Digi ConnectCore Container Manager daemon
|
||||||
After=network.target cccsd.service
|
After=network.target cccsd.service
|
||||||
Wants=network.target cccsd.service
|
Wants=network.target cccsd.service
|
||||||
|
Before=shutdown.target
|
||||||
|
Conflicts=shutdown.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue