diff --git a/sfsmcd/src/main.rs b/sfsmcd/src/main.rs index dc9ad82..ed61dfd 100644 --- a/sfsmcd/src/main.rs +++ b/sfsmcd/src/main.rs @@ -121,11 +121,7 @@ async fn main() -> Result<(), Box> { true })); - // Will (afaik) be stabilized in Rust 1.48 - // core::future::pending::<()>().await; - - // Wait until SIGTERM (when systemd stops this service), then shutdown - tokio::signal::unix::signal(tokio::signal::unix::SignalKind::terminate())?.recv().await; - info!("Got SIGTERM, shutting down"); - Ok(()) + // Has been stabilized in Rust 1.48 + core::future::pending::<()>().await; + unreachable!(); } \ No newline at end of file