From 9ce7a22c0ab803ef4d4780c11142fa65277a4d39 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 5 Feb 2022 11:49:25 +0000
Subject: [PATCH] Allow the gitlab-deps server to restart on error without
 limits

Should let gitlab-deps handle temporary unavailability of Gitlab on
startup, by simply retrying until the server comes back. The increased
RestartSec ensures we're not overwhelming the host with restarts.
---
 debian/gitlab-deps.service | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/gitlab-deps.service b/debian/gitlab-deps.service
index ca9f776..61bec34 100644
--- a/debian/gitlab-deps.service
+++ b/debian/gitlab-deps.service
@@ -1,10 +1,12 @@
 [Unit]
 Description=gitlab-deps server
 After=network.target
+StartLimitIntervalSec=0
 
 [Service]
 Type=simple
 Restart=on-failure
+RestartSec=3
 EnvironmentFile=/etc/default/gitlab-deps
 ExecStart=/usr/sbin/gitlab-deps-server-wrapper
 User=gitlab-deps
-- 
GitLab