diff options
author | William A. Kennington III <wak@google.com> | 2020-05-08 23:39:41 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-05-13 15:41:57 +0300 |
commit | af0f1e074e1f50cf2a3d9d69d8f1d2e5c6b8e018 (patch) | |
tree | 7826302e7140bb647f71bf2a6d3e0bb2080d9949 /meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service | |
parent | 01e29868bde9c6f15ac201dfe67152e59b33eba7 (diff) | |
download | openbmc-af0f1e074e1f50cf2a3d9d69d8f1d2e5c6b8e018.tar.xz |
phosphor-ipmi-fru: Retry on failure
FRUs sometimes fail to read on the first try for some of our systems.
This causes them to be retried up to 10 times.
(From meta-phosphor rev: 5be2cca882eb6f45e3643b122b629310bc3cfc82)
Change-Id: I9c39e9f89d9b3ba02f2ea808bc92804fe5509ef4
Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service')
-rw-r--r-- | meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service index 1486cace0b..2fc30838ac 100644 --- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service +++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service @@ -2,9 +2,10 @@ Description=Read %I EEPROM Wants=mapper-wait@-xyz-openbmc_project-inventory.service After=mapper-wait@-xyz-openbmc_project-inventory.service +StartLimitBurst=10 [Service] -Restart=no +Restart=on-failure Type=oneshot EnvironmentFile={envfiledir}/obmc/eeproms/%I ExecStartPre={bindir}/of-name-to-eeprom.sh {envfiledir}/obmc/eeproms/%I |