diff options
author | George Hung <george.hung@quantatw.com> | 2020-10-13 15:10:26 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-10-14 15:46:13 +0300 |
commit | 6e80aa22d0e89adda3d9ed54ab070f2c791f1149 (patch) | |
tree | 1802bd81f1276ff56dca99f0970e9d6f6fab2bef /meta-quanta/meta-gbs/recipes-phosphor | |
parent | 21ebf78f3745a7b400badd013bb46db5f0651e7f (diff) | |
download | openbmc-6e80aa22d0e89adda3d9ed54ab070f2c791f1149.tar.xz |
meta-quanta: gbs: add retry 10 times when service start on failure
Sometimes gpio presence service will get sdbus "path
not found" error for getting Inventory Manager service
while bmc boot up with cleaning rw partition
(From meta-quanta rev: b45c44a3903ae01ff8425ca965f091724363cbed)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Ia625a27fb50c723d41ec3e789b611c0f82c05d95
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-phosphor')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace index fe782d60ee..15341cbfb3 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace @@ -3,8 +3,10 @@ Description=Phosphor GPIO %I Presence Wants=mapper-wait@-xyz-openbmc_project-inventory.service After=mapper-wait@-xyz-openbmc_project-inventory.service ConditionPathExists=/etc/default/obmc/gpio/gpios-%i.conf +StartLimitBurst=10 [Service] +Restart=on-failure EnvironmentFile=/etc/default/obmc/gpio/gpios-%i.conf ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES} |