diff --git a/hive-c0re/src/main.rs b/hive-c0re/src/main.rs index af73b613b..63341f285 100644 --- a/hive-c0re/src/main.rs +++ b/hive-c0re/src/main.rs @@ -385,17 +385,7 @@ async fn cmd_serve( let coord_sig = coord.clone(); tokio::select! { res = server::serve(socket, coord) => { res? } - _ = tokio::signal::ctrl_c() => { - tracing::info!("SIGINT received — requesting shutdown"); - coord_sig.request_shutdown(); - } - () = async { - let mut sig = tokio::signal::unix::signal( - tokio::signal::unix::SignalKind::terminate() - ).expect("failed to install SIGTERM handler"); - sig.recv().await; - } => { - tracing::info!("SIGTERM received — requesting shutdown"); + () = swarm_secret_client::shutdown_signal() => { coord_sig.request_shutdown(); } }