From b0e8f1f70386b57b8485cbffbc28ff84aa472474 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 25 May 2025 11:54:27 +1200 Subject: [PATCH] Bug fixing --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index a5ab022..6d88998 100644 --- a/README.md +++ b/README.md @@ -78,4 +78,17 @@ Example config.json: } ``` +## Signal Handling + +The server handles the following signals: + +- `SIGTERM`/`SIGINT`: Gracefully shuts down the server when received (e.g. from Ctrl+C or system shutdown) +- `SIGHUP`: Reloads the server configuration without restarting the service + +The server ensures proper cleanup of resources during shutdown, including: +- Closing all database connections +- Stopping the HTTP server +- Cleaning up any open file handles +- Properly terminating worker threads + Dockcross is used to cross-build for both 64-bit x86 and arm64 (combining both into one docker container image).