diff options
author | George Hung <george.hung@quantatw.com> | 2021-03-17 15:20:38 +0300 |
---|---|---|
committer | George Hung <george.hung@quantatw.com> | 2021-03-19 08:42:13 +0300 |
commit | 3236173d6205cb2178820f151fbd41ba592042bf (patch) | |
tree | fc78a37ee4912e1850040d126e82ff810534611d /meta-quanta/meta-gbs | |
parent | 8b0980e38dd7631f08d4aea9cc19bca650df3772 (diff) | |
download | openbmc-3236173d6205cb2178820f151fbd41ba592042bf.tar.xz |
meta-quanta: gbs: add retry when LED manager service start failed
Sometimes LED manager service will get sdbus "the name
is not activatable" error for the first start, so add
retry 10 times to make sure the service start successfully
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Ic9e429bca70cae3272547de6f8c8f96df0d02a9c
Diffstat (limited to 'meta-quanta/meta-gbs')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager/service-override.conf | 2 | ||||
-rw-r--r-- | meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager_%.bbappend | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager/service-override.conf b/meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager/service-override.conf new file mode 100644 index 000000000..0f4083416 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager/service-override.conf @@ -0,0 +1,2 @@ +[Unit] +StartLimitBurst=10 diff --git a/meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager_%.bbappend new file mode 100644 index 000000000..a7ec24f41 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:" +SRC_URI_append_gbs = " file://service-override.conf" + +SYSTEMD_OVERRIDE_${PN}-ledmanager_append_gbs = " \ + service-override.conf:xyz.openbmc_project.LED.GroupManager.service.d/service-override.conf" |