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>
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 fe782d6..15341cb 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 @@
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}