Expand description
Daemon main loop: spawns hyperd, runs health listener, monitors idle timeout
and hyperd liveness, restarts hyperd if it dies.
Structs§
- Daemon
Config - Configuration for the daemon process.
Enums§
- Restart
Attempt - Outcome of a single rate-limit check on the restart-history vector.
Constants§
- RESTART_
LIMIT - RESTART_
WINDOW - Restart-attempt rate limit: at most 3 attempts within this window. The 4th attempt within the window is rejected and triggers daemon shutdown.
Functions§
- run_
daemon - Run the daemon. This function blocks until shutdown is triggered.
- try_
record_ restart_ attempt - Prune restart-history entries older than
RESTART_WINDOW, then either recordnowas a new attempt or report that the limit is already exceeded.