Skip to content

Commit a99074b

Browse files
plsnplunnytechknowlogick
authored
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 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 4a23212 commit a99074b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

contrib/systemd/gitea.service

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,8 @@ After=network.target
4949
###
5050

5151
[Service]
52-
# Modify these two values and uncomment them if you have
53-
# repos with lots of files and get an HTTP error 500 because
54-
# of that
55-
###
56-
#LimitMEMLOCK=infinity
57-
#LimitNOFILE=65535
52+
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
53+
# LimitNOFILE=524288:524288
5854
RestartSec=2s
5955
Type=simple
6056
User=git

0 commit comments

Comments
 (0)