1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-27 08:00:48 -04:00
gitea/modules
Frank 1f0638747b
Preserve unix socket file (#20499)
By default Gitea will always unlink any sockets that are provided using the `LISTEN_FDS` environment variable. This is because it uses this variable to handle passing when it is doing a graceful restart. However, this same mechanism is used by systemd - which explicitly expects that passed in sockets should not be unlinked by the receiving process. 

This PR adjusts Gitea's graceful restart mechanism to use an additional environment variable which tracks if a listening socket was opened by Gitea - and therefore should be unlinked on shutdown by Gitea.

Fix #20490

Co-authored-by: zeripath <art27@cantab.net>
2022-08-13 22:31:33 +01:00
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
container
context
convert
csv
doctor
emoji
eventsource
generate
git
gitgraph
graceful Preserve unix socket file (#20499) 2022-08-13 22:31:33 +01:00
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer
json
lfs
log
markup
mcaptcha
metrics
migration
mirror
nosql
notification
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository
secret
session
setting
sitemap
ssh
storage
structs
svg
sync
templates
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
web