diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index 3e3bf234e..44ca54a12 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -384,7 +384,6 @@ async fn run(opt: config::Opt) -> Result<()> { loop { debug!("waiting for SIGINT or SIGTERM has_tls_certs: {}", has_tls_certs); // Wait for a connection - // Wait for a connection let (socket, _) = { #[cfg(unix)] { diff --git a/rustfs/src/server/service_state.rs b/rustfs/src/server/service_state.rs index 556458181..4f936a294 100644 --- a/rustfs/src/server/service_state.rs +++ b/rustfs/src/server/service_state.rs @@ -36,7 +36,9 @@ fn notify_systemd(state: &str) { #[derive(Debug)] pub enum ShutdownSignal { CtrlC, + #[cfg(unix)] Sigterm, + #[cfg(unix)] Sigint, }