From 6f9b63517db7ed95959be7b0e93d46dfaf0aee2e Mon Sep 17 00:00:00 2001 From: Jiaxin Zhu Date: Tue, 30 Apr 2024 21:15:34 +0800 Subject: [PATCH] fix(systemd script): define RestartSec as 2 (#7733) --- scripts/systemd/gogs.service | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service index 4efc953e6..ee9ffc034 100644 --- a/scripts/systemd/gogs.service +++ b/scripts/systemd/gogs.service @@ -17,6 +17,7 @@ Group=git WorkingDirectory=/home/git/gogs ExecStart=/home/git/gogs/gogs web Restart=always +RestartSec=2s Environment=USER=git HOME=/home/git # Some distributions may not support these hardening directives. If you cannot start the service due