
This updates containerd.service service override file containerd-stx-override.conf with systemd dependencies: After=syslog.service This addresses cases of missing logs during shutdown. Test plan: - PASS - build-image, install and boot up on AIO-SX - PASS - verify service order dependencies via 'sudo systemd-analyse dump' - PASS - perform reboot and verify /var/log/daemon.log containerd is stopped before logger is stopped. Partial-Bug: 2043069 Change-Id: I136c584c3832e17cdf35d7ba87387bd3ce3f4a2d Signed-off-by: Jim Gauld <James.Gauld@windriver.com>
11 lines
250 B
Plaintext
11 lines
250 B
Plaintext
[Unit]
|
|
After=syslog.service
|
|
|
|
[Service]
|
|
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/containerd.pid;'
|
|
ExecStop=-/usr/sbin/k8s-container-cleanup.sh
|
|
ExecStopPost=/bin/rm -f /var/run/containerd.pid
|
|
|
|
# pmond monitors containerd service
|
|
Restart=no
|