#axum #shutdown

vss

A dead simple library to allow for easily reused shutdown signal handling

2 releases

0.1.1 Nov 26, 2024
0.1.0 Dec 29, 2023

#2363 in Asynchronous

Download history 24/week @ 2025-12-04 54/week @ 2025-12-11 61/week @ 2025-12-18 10/week @ 2025-12-25 37/week @ 2026-01-01 2/week @ 2026-01-08 19/week @ 2026-01-15 10/week @ 2026-01-22 98/week @ 2026-01-29 5/week @ 2026-02-05 12/week @ 2026-02-12 39/week @ 2026-02-19 50/week @ 2026-02-26 108/week @ 2026-03-05 39/week @ 2026-03-12 12/week @ 2026-03-19

214 downloads per month
Used in tunnelbana

MIT/Apache

4KB

valkyrie_pilot's shutdown signal

This crate provides a simple, cross-platform Tokio shutdown waiter.

Made because docker sends sigquit, but tokio's ctrl_c does not respond to sigquit, leading to the container being killed 10s later.


vss

valkyrie_pilot's shutdown_signal

This is a very simple crate, made to be used with axum's graceful_shutdown method, like so:

#[tokio::main]
async fn main() {
axum::serve(tcp, app)
    .with_graceful_shutdown(vss::shutdown_signal())
    .await
    .unwrap();
}

Dependencies

~2.5–5MB
~84K SLoC