Skip to content

Commit 22c6d7c

Browse files
committed
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.
1 parent cdea272 commit 22c6d7c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

guest-agent/src/guest_api_service.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ impl GuestApiRpc for GuestApiHandler {
5252

5353
async fn shutdown(self) -> Result<()> {
5454
tokio::spawn(async move {
55-
notify_host("shutdown.progress", "stopping app").await.ok();
56-
perr(cmd!(systemctl stop app-compose));
5755
notify_host("shutdown.progress", "powering off").await.ok();
5856
perr(cmd!(systemctl poweroff));
5957
});

0 commit comments

Comments
 (0)