From 33d3703f91ee1330e9065035a14c426c765315aa Mon Sep 17 00:00:00 2001
From: Alex Murray <alex.murray@canonical.com>
Date: Thu, 26 Sep 2024 09:55:20 +0930
Subject: [PATCH] snap: set restart-delay to make service more reliable

This makes the service more reliable to start at boot on
slower devices where it takes longer for networking to
properly come up. Should help fix issues like #6983

Signed-off-by: Alex Murray <alex.murray@canonical.com>
---
 snap/snap.tmpl.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/snap/snap.tmpl.yaml b/snap/snap.tmpl.yaml
index 8bff5c53..86083010 100644
--- a/snap/snap.tmpl.yaml
+++ b/snap/snap.tmpl.yaml
@@ -36,6 +36,7 @@
     - 'network-control'
     'daemon': 'simple'
     'restart-condition': 'always'
+    'restart-delay': '30s'
   'adguard-home-web':
     'command': 'adguard-home-web.sh'
     'plugs':