From 68f6156a8779a61892ab5414d07ef73db8fc03e3 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Mon, 27 Jul 2020 16:51:00 +0200
Subject: [PATCH] MycroftOS: Limit the restart of the wifi-connect service.
---
buildroot-external/package/wifi-connect/wifi-connect.service | 3 +++
1 file changed, 3 insertions(+)
diff --git a/buildroot-external/package/wifi-connect/wifi-connect.service b/buildroot-external/package/wifi-connect/wifi-connect.service
index 4a662992..e38c4f57 100644
--- a/buildroot-external/package/wifi-connect/wifi-connect.service
+++ b/buildroot-external/package/wifi-connect/wifi-connect.service
@@ -1,11 +1,14 @@
[Unit]
Description=Mycroft wifi connect service
After=NetworkManager.service
+StartLimitInterval=200
+StartLimitBurst=5
[Service]
Type=simple
ExecStart=/usr/local/sbin/start-wifi-connect
Restart=on-failure
+RestartSec=30
[Install]
WantedBy=multi-user.target