From 6171c01bfc360c71bd96003abb7bcb3fd8d970b5 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Thu, 22 Apr 2021 14:25:27 +0200 Subject: [PATCH] Retry Umbrel systemd startup service indefinitely (#634) Co-authored-by: Luke Childs --- scripts/umbrel-os/services/umbrel-startup.service | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/umbrel-os/services/umbrel-startup.service b/scripts/umbrel-os/services/umbrel-startup.service index b9e8595..d9a0ec9 100644 --- a/scripts/umbrel-os/services/umbrel-startup.service +++ b/scripts/umbrel-os/services/umbrel-startup.service @@ -10,6 +10,10 @@ After=network-online.target Wants=docker.service After=docker.service +# This prevents us hitting restart rate limits and ensures we keep restarting +# indefinitely. +StartLimitInterval=0 + [Service] Type=forking TimeoutStartSec=infinity @@ -22,6 +26,8 @@ StandardOutput=syslog StandardError=syslog SyslogIdentifier=umbrel startup RemainAfterExit=yes +Restart=always +RestartSec=10 [Install] WantedBy=multi-user.target