[PR #416] [MERGED] Support http service graceful restart #15369

Closed
opened 2025-11-02 11:45:01 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/416
Author: @lunny
Created: 12/20/2016
Status: Merged
Merged: 12/31/2016
Merged by: @lunny

Base: masterHead: lunny/grace_http_restart_support


📝 Commits (2)

  • 3bbbab3 support http service graceful restart
  • f36a2ce fix dependencies

📊 Changes

20 files changed (+1919 additions, -3 deletions)

View changed files

📝 cmd/web.go (+23 -3)
vendor/github.com/facebookgo/clock/LICENSE (+21 -0)
vendor/github.com/facebookgo/clock/README.md (+104 -0)
vendor/github.com/facebookgo/clock/clock.go (+363 -0)
vendor/github.com/facebookgo/grace/gracehttp/http.go (+186 -0)
vendor/github.com/facebookgo/grace/gracenet/net.go (+252 -0)
vendor/github.com/facebookgo/grace/license (+30 -0)
vendor/github.com/facebookgo/grace/patents (+33 -0)
vendor/github.com/facebookgo/httpdown/httpdown.go (+376 -0)
vendor/github.com/facebookgo/httpdown/license (+30 -0)
vendor/github.com/facebookgo/httpdown/patents (+33 -0)
vendor/github.com/facebookgo/httpdown/readme.md (+41 -0)
vendor/github.com/facebookgo/stats/aggregation.go (+35 -0)
vendor/github.com/facebookgo/stats/counter.go (+112 -0)
vendor/github.com/facebookgo/stats/license (+30 -0)
vendor/github.com/facebookgo/stats/patents (+33 -0)
vendor/github.com/facebookgo/stats/readme.md (+4 -0)
vendor/github.com/facebookgo/stats/stats.go (+166 -0)
vendor/github.com/facebookgo/stats/stopper.go (+17 -0)
📝 vendor/vendor.json (+30 -0)

📄 Description

This PR will let gitea support graceful upgrade. The upgrae setps are belwo:

  1. Copy new gitea binary to replace gitea when gitea is running
  2. run kill -USR2 <gitea_pid>

That's OK. Detail information please see github.com/facebookgo/grace


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/416 **Author:** [@lunny](https://github.com/lunny) **Created:** 12/20/2016 **Status:** ✅ Merged **Merged:** 12/31/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/grace_http_restart_support` --- ### 📝 Commits (2) - [`3bbbab3`](https://github.com/go-gitea/gitea/commit/3bbbab34a39bfd98fce14efc7da56021d412e2b6) support http service graceful restart - [`f36a2ce`](https://github.com/go-gitea/gitea/commit/f36a2cee9ada9dfc036c9e2982ea0b734b5d7d58) fix dependencies ### 📊 Changes **20 files changed** (+1919 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+23 -3) ➕ `vendor/github.com/facebookgo/clock/LICENSE` (+21 -0) ➕ `vendor/github.com/facebookgo/clock/README.md` (+104 -0) ➕ `vendor/github.com/facebookgo/clock/clock.go` (+363 -0) ➕ `vendor/github.com/facebookgo/grace/gracehttp/http.go` (+186 -0) ➕ `vendor/github.com/facebookgo/grace/gracenet/net.go` (+252 -0) ➕ `vendor/github.com/facebookgo/grace/license` (+30 -0) ➕ `vendor/github.com/facebookgo/grace/patents` (+33 -0) ➕ `vendor/github.com/facebookgo/httpdown/httpdown.go` (+376 -0) ➕ `vendor/github.com/facebookgo/httpdown/license` (+30 -0) ➕ `vendor/github.com/facebookgo/httpdown/patents` (+33 -0) ➕ `vendor/github.com/facebookgo/httpdown/readme.md` (+41 -0) ➕ `vendor/github.com/facebookgo/stats/aggregation.go` (+35 -0) ➕ `vendor/github.com/facebookgo/stats/counter.go` (+112 -0) ➕ `vendor/github.com/facebookgo/stats/license` (+30 -0) ➕ `vendor/github.com/facebookgo/stats/patents` (+33 -0) ➕ `vendor/github.com/facebookgo/stats/readme.md` (+4 -0) ➕ `vendor/github.com/facebookgo/stats/stats.go` (+166 -0) ➕ `vendor/github.com/facebookgo/stats/stopper.go` (+17 -0) 📝 `vendor/vendor.json` (+30 -0) </details> ### 📄 Description This PR will let gitea support graceful upgrade. The upgrae setps are belwo: 1. Copy new gitea binary to replace gitea when gitea is running 2. run `kill -USR2 <gitea_pid>` That's OK. Detail information please see github.com/facebookgo/grace --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:45:01 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15369