diff --git a/server/src/main.rs b/server/src/main.rs index c9d2274..0b762e8 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -44,6 +44,9 @@ enum ServerMode { /// Run garbage collection then exit. GarbageCollectorOnce, + + /// Check the configuration then exit. + CheckConfig, } #[tokio::main] @@ -95,6 +98,9 @@ async fn main() -> Result<()> { ServerMode::GarbageCollectorOnce => { attic_server::gc::run_garbage_collection_once(config).await?; } + ServerMode::CheckConfig => { + // config is valid, let's just exit :) + } } Ok(())