From af0f1e074e1f50cf2a3d9d69d8f1d2e5c6b8e018 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 8 May 2020 13:39:41 -0700 Subject: 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 Signed-off-by: Andrew Geissler --- .../recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-phosphor') 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 1486cace0..2fc30838a 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 -- cgit v1.2.3