modules/python-http-handlers: better daemon handling #153

Merged
oysteikt merged 1 commits from python-http-handlers-systemd into main 2026-07-27 13:50:21 +02:00

1 Commits

Author SHA1 Message Date
oysteikt de1e80cd40 modules/python-http-handlers: better daemon handling
Eval nix flake / evals (push) Successful in 8m29s
Eval nix flake / evals (pull_request) Successful in 9m8s
This commit extends the python http handler template with the following
things:

- Integration with systemd notify
- Named systemd sockets, to avoid depending on expected FD number
- Graceful and customizable handling of SIGHUP reloads
- Graceful shutdown on SIGTERM with timeout
- Multithreaded HTTP server, one thread per request
- Better error message on undefined handler
2026-07-21 23:53:10 +09:00