From 2a4e0c868506e0d9ccb73b64107db7bfe84fa3dd Mon Sep 17 00:00:00 2001
From: morph027 <stefan.heitmueller@gmx.com>
Date: Thu, 4 Aug 2022 15:36:44 +0200
Subject: [PATCH] systemd: add Restart

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
---
 .packaging/gitea.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.packaging/gitea.service b/.packaging/gitea.service
index 8c55c91..d97c4b6 100644
--- a/.packaging/gitea.service
+++ b/.packaging/gitea.service
@@ -3,13 +3,13 @@ Description=Gitea (Git with a cup of tea)
 After=network.target
 
 [Service]
-RestartSec=2s
+RestartSec=30s
 Type=simple
 User=gitea
 Group=gitea
 WorkingDirectory=/var/lib/gitea/
 ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
-Restart=always
+Restart=on-failure
 Environment="GITEA_WORK_DIR=/var/lib/gitea/"
 EnvironmentFile=-/etc/default/gitea