feat(server,ui): add graceful SIGTERM/SIGINT shutdown to both binaries #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_graceful_shutdown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
hero_livekit_serverandhero_livekit_uinow handle SIGINT and SIGTERM for clean process shutdownrpc.sockandui.sock) are removed on exit to prevent stale socketstokio::select!over spawned server task +shutdown_signal()async fnabort_handlepattern to safely cancel the OServer taskRelated Issue
Closes #7
Changes
crates/hero_livekit_server/src/main.rs: Addedshutdown_signal(),service_socket_path(), wrapped OServer in spawned task withtokio::select!+ abort handlecrates/hero_livekit_ui/src/main.rs: Addedshutdown_signal(), restructuredmain()to spawn accept loop + await signal + cleanupTest Results