Merge pull request #273 from ae-govau/gracefulshutdown

fix: shutdown gracefully on TERM or INT signals
This commit is contained in:
Michael Eischer
2024-02-08 19:30:39 +01:00
committed by GitHub
3 changed files with 260 additions and 88 deletions

View File

@@ -0,0 +1,7 @@
Change: Server is now shutdown cleanly on TERM or INT signals
Server now listens for TERM and INT signals and cleanly closes down the http.Server and listener.
This is particularly useful when listening on a unix socket, as the server will remove the socket file from it shuts down.
https://github.com/restic/rest-server/pull/273