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
This commit is contained in:
Alexandre Bard 2020-06-23 16:56:39 +02:00
parent af1e36b559
commit 07f045cac2
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Before=ModemManager.service
Type=forking Type=forking
ExecStart=/usr/bin/wwan-config %I ExecStart=/usr/bin/wwan-config %I
PIDFile=/run/%I.pid PIDFile=/run/%I.pid
Restart=on-failure
[Install] [Install]
RequiredBy=ModemManager.service RequiredBy=ModemManager.service