google-usb-network: always restart usb service
We have seen a new failure pattern that obj mapper start and stop
immediately. This is to ensure that usb service retries restart for a
while (around 10 times in 100s).
Google-Bug-Id: 310665870
Change-Id: I1431241c8fee4a057cd8d5e05351233a807f019a
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
(cherry picked from commit 6d9db842a1c60d20e3e1a8fe5cc1ae6726eeba5f)
diff --git a/recipes-google/networking/google-usb-network/google-usb-dynamic.service b/recipes-google/networking/google-usb-network/google-usb-dynamic.service
index b426b47..f235fce 100644
--- a/recipes-google/networking/google-usb-network/google-usb-dynamic.service
+++ b/recipes-google/networking/google-usb-network/google-usb-dynamic.service
@@ -1,11 +1,12 @@
[Unit]
Requires=xyz.openbmc_project.ObjectMapper.service
After=xyz.openbmc_project.ObjectMapper.service
-StartLimitIntervalSec=90
-StartLimitBurst=5
+StartLimitIntervalSec=180
+StartLimitBurst=10
[Service]
-Restart=on-failure
+Restart=always
+RestartSec=5
Type=notify
ExecStart=/usr/libexec/google-usb-dynamic