From 07f045cac2a2f572e57ab59c48b0e0bf43813a91 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Tue, 23 Jun 2020 16:56:39 +0200 Subject: [PATCH] wwan-config: Automatically restart service when it fails It may happen that the service is failing, because the modem is in an unpredictable state. To avoid this kind of cases and increase the resilience of the system, systemd will now restart the service if it fails, leading to a full power cycle of the modem. BugzID: 63740 --- .../wwan-config/wwan-config/wwan-config@.service | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-connectivity/wwan-config/wwan-config/wwan-config@.service b/recipes-connectivity/wwan-config/wwan-config/wwan-config@.service index f9f6512..d899b8b 100644 --- a/recipes-connectivity/wwan-config/wwan-config/wwan-config@.service +++ b/recipes-connectivity/wwan-config/wwan-config/wwan-config@.service @@ -6,6 +6,7 @@ Before=ModemManager.service Type=forking ExecStart=/usr/bin/wwan-config %I PIDFile=/run/%I.pid +Restart=on-failure [Install] RequiredBy=ModemManager.service