From f349518002474fd7fc8fa4ade25460673b947584 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 27 May 2023 08:13:00 +0200 Subject: [PATCH] [BRANDING] systemd service Type=simple The problem is Type=notify - when that is set, systemd waits for a signal from the service that it's ready so systemctl start forgejo takes forever (or until it runs into a timeout). Refs: https://codeberg.org/forgejo/forgejo/issues/777 (cherry picked from commit c127369bba3d36f34ef944679a4c40680cad4d2e) (cherry picked from commit 883a7eb570d74c4fd7f44396556148ab88d54f58) (cherry picked from commit 4dfa4c7d210fe33effe26d7a4b74395acd2436b1) (cherry picked from commit 961163d010e107baf6b30d6da334dc569c1d2f9a) (cherry picked from commit 6a058126287ed25f8b5a7790dea616d2a5506098) (cherry picked from commit 112c419f0b365d64a025e56aaa9e424c7256b06a) (cherry picked from commit f3cd60dee739e09189c3821d07c9330d7c247c57) (cherry picked from commit 6fccc6bf0b11f973e911e95cb3d005a0c21216ca) (cherry picked from commit 556862de70314d4c71a5cf60f5637fec673bac48) (cherry picked from commit eb8e2880f717f84876d7155d20768a95172bf72f) (cherry picked from commit 264d85330c38bff2590168d9cd149d55588613d6) (cherry picked from commit 083e66a2b6f00d7b8ff247fd35572dfa13094714) (cherry picked from commit c1385bca5521e34ac854f13467a57015558d368f) (cherry picked from commit d61930730d1f89ff9150e89a2809d3d0184d6af8) (cherry picked from commit cfc815254f56719bbd2c09faa3f3f39f1d9753a9) (cherry picked from commit 613192ae64fbcfb8f0a10ab6fccd2e227c8e0957) (cherry picked from commit bf830a0dab534efc33ca5376bccc72ea18e934df) (cherry picked from commit 448ab09c560ca119fe7dc1f9c911b23bb97b7f9b) (cherry picked from commit fb3e99edfd607f5f8e464329ecf9d0d85bc8cbff) (cherry picked from commit eec550a9a4038e177d6c44a9ec4b72218e8269f8) (cherry picked from commit a0ecc33160965acb661cac02c8f3f22fdd9ab060) (cherry picked from commit b4e8f10a4f3874b08f0ff78d3cac470a6c613fab) (cherry picked from commit 2f3d010355adca56af91ff01594ea1989c86e129) (cherry picked from commit 2f25e544d7a75376545c976addd7b3ee5d46f55b) (cherry picked from commit d76ca04f68534ed50db364f485d631a85d9288ea) --- contrib/systemd/forgejo.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/systemd/forgejo.service b/contrib/systemd/forgejo.service index 0b8c8cccbf..ce5810b5fa 100644 --- a/contrib/systemd/forgejo.service +++ b/contrib/systemd/forgejo.service @@ -52,7 +52,7 @@ After=network.target # Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that # LimitNOFILE=524288:524288 RestartSec=2s -Type=notify +Type=simple User=git Group=git WorkingDirectory=/var/lib/forgejo/