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).