Add syslog.service dependency order to containerd

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>
This commit is contained in:
Jim Gauld 2023-11-09 05:59:36 -05:00
parent 28720e9e90
commit b6c7d16f1c
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
[Unit]
After=syslog.service
[Service]
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/containerd.pid;'
ExecStop=-/usr/sbin/k8s-container-cleanup.sh