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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue