aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorplsnp2022-10-11 18:26:32 +0200
committerGitHub2022-10-11 12:26:32 -0400
commita99074b2679ba00a67b71dfdb4b07d0fab08b82a (patch)
tree3f693cde059847b41c5b472ac3b1420b88869b23 /contrib
parent4a2321210233e0b92c6e5894483e0929fb157a1b (diff)
Update gitea.service (#21399)
`LimitMEMLOCK=infinity` is already the default, so removed that Default soft limit for LimitNOFILE is 1024 Default hard limit for LimitNOFILE is 524288 `LimitNOFILE=65535` increases the soft limit, but decreases the hard limit References: * https://www.freedesktop.org/software/systemd/man/systemd.exec.html * https://blog.skbali.com/2019/09/set-ulimits-for-a-script-started-using-systemd/ Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/systemd/gitea.service8
1 files changed, 2 insertions, 6 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
index 79c34564b..d205c6ee8 100644
--- a/contrib/systemd/gitea.service
+++ b/contrib/systemd/gitea.service
@@ -49,12 +49,8 @@ After=network.target
###
[Service]
-# Modify these two values and uncomment them if you have
-# repos with lots of files and get an HTTP error 500 because
-# of that
-###
-#LimitMEMLOCK=infinity
-#LimitNOFILE=65535
+# 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=simple
User=git