From 3fe9a6c6b113d64c7a8409b5463026700be4c28c Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 15 Jan 2026 03:39:16 +0000 Subject: Add cleanup to daemon Also fixup for container image --- makima/src/bin/makima.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'makima/src/bin') diff --git a/makima/src/bin/makima.rs b/makima/src/bin/makima.rs index 35783dc..5c71885 100644 --- a/makima/src/bin/makima.rs +++ b/makima/src/bin/makima.rs @@ -219,6 +219,12 @@ async fn run_daemon( } } + // Gracefully shutdown all running Claude processes + eprintln!("Terminating Claude processes..."); + task_manager + .shutdown_all_processes(std::time::Duration::from_secs(5)) + .await; + // Cleanup tracing::info!("Daemon stopped"); -- cgit v1.2.3