MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / stop

Method stop

client/src/service/linux.rs:93–99  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

91 }
92
93 fn stop(&self) -> Result<()> {
94 Command::new("systemctl")
95 .args(["stop", &self.config.name])
96 .status()
97 .context("Failed to stop service")?;
98 Ok(())
99 }
100
101 fn status(&self) -> Result<ServiceStatus> {
102 let service_path = self.service_file_path();

Callers 1

uninstallMethod · 0.45

Calls 1

statusMethod · 0.45

Tested by

no test coverage detected