MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / shutdown

Method shutdown

guest-agent/src/guest_api_service.rs:53–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 }
52
53 async fn shutdown(self) -> Result<()> {
54 tokio::spawn(async move {
55 notify_host("shutdown.progress", "powering off").await.ok();
56 perr(cmd!(systemctl poweroff));
57 });
58 Ok(())
59 }
60
61 async fn network_info(self) -> Result<NetworkInformation> {
62 Ok(NetworkInformation {

Callers 1

stepMethod · 0.45

Calls 2

notify_hostFunction · 0.85
perrFunction · 0.85

Tested by

no test coverage detected