diff --git a/sfsmcd/src/main.rs b/sfsmcd/src/main.rs index 5c3cbbb..a40f589 100644 --- a/sfsmcd/src/main.rs +++ b/sfsmcd/src/main.rs @@ -55,6 +55,7 @@ async fn main() -> Result<(), Box> { // Will (afaik) be stabilized in Rust 1.48 // core::future::pending::<()>().await; - loop {}; - unreachable!(); + tokio::signal::unix::signal(tokio::signal::unix::SignalKind::terminate())?.recv().await; + info!("Got SIGTERM, shutting down"); + Ok(()) } \ No newline at end of file