forgejo/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 Switch Unicode Escaping to a VSCode-like system (#19990) 2022-08-13 19:32:34 +01:00
container
context Fix disable download button (#20701) 2022-08-08 15:42:36 +02:00
convert Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
csv
doctor Fix git.Init for doctor sub-command (#20782) 2022-08-14 00:33:18 +08:00
emoji
eventsource
generate
git Refactor legacy git init (#20376) 2022-08-09 11:22:24 +08:00
gitgraph
graceful Preserve unix socket file (#20499) 2022-08-13 22:31:33 +01:00
hcaptcha
highlight Rework file highlight rendering and fix yaml copy-paste (#19967) 2022-07-30 21:17:43 +02:00
hostmatcher
httpcache
httplib
indexer
json
lfs
log
markup Should also support upper-case README files (#20581) 2022-08-01 20:15:40 +08:00
mcaptcha Add support mCaptcha as captcha provider (#20458) 2022-08-10 15:20:10 +02:00
metrics
migration
mirror
nosql
notification
options
packages Add support for Pub packages (#20560) 2022-08-07 18:09:54 +08:00
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository Executable check always returns true for windows (#20637) 2022-08-04 15:28:32 +08:00
secret
session
setting Add support mCaptcha as captcha provider (#20458) 2022-08-10 15:20:10 +02:00
sitemap
ssh Use strings.Cut for GIT_PROTOCOL value (#20638) 2022-08-03 01:34:50 +03:00
storage
structs Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
svg
sync
templates Add disable download source configuration (#20548) 2022-07-31 18:57:02 +02:00
test
timeutil Remove useless JS operation for relative time tooltips (#20756) 2022-08-12 17:03:41 -04:00
translation
typesniffer Rework raw file http header logic (#20484) 2022-07-29 17:26:55 +02:00
updatechecker
upload
uri
user
util Fix SecToTime edge-cases (#20610) 2022-08-08 13:07:42 +08:00
validation
web refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00