bench-forgejo/modules/graceful
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
..
context.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
manager.go Add pprof labels in processes and for lifecycles (#19202) 2022-03-25 12:47:12 +00:00
manager_unix.go Fix signal loop in graceful manager (#19943) 2022-06-12 21:50:18 +08:00
manager_windows.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
net_unix.go Preserve unix socket file (#20499) 2022-08-13 22:31:33 +01:00
net_windows.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
restart_unix.go Preserve unix socket file (#20499) 2022-08-13 22:31:33 +01:00
server.go Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00
server_hooks.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 2019-12-15 09:51:28 +00:00
server_http.go Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00