From 22c6d7cffad89f2b59f8151ab08694e8775398af Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 22 Jan 2026 15:10:37 +0000 Subject: [PATCH] Remove redundant systemctl stop app-compose from guest shutdown systemctl poweroff will automatically stop all services including app-compose. The explicit stop was redundant and could cause the shutdown to hang for up to 90 seconds if the service stop timed out. --- guest-agent/src/guest_api_service.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/guest-agent/src/guest_api_service.rs b/guest-agent/src/guest_api_service.rs index 2f905778..6af35136 100644 --- a/guest-agent/src/guest_api_service.rs +++ b/guest-agent/src/guest_api_service.rs @@ -52,8 +52,6 @@ impl GuestApiRpc for GuestApiHandler { async fn shutdown(self) -> Result<()> { tokio::spawn(async move { - notify_host("shutdown.progress", "stopping app").await.ok(); - perr(cmd!(systemctl stop app-compose)); notify_host("shutdown.progress", "powering off").await.ok(); perr(cmd!(systemctl poweroff)); });