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

Method start

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

Source from the content-addressed store, hash-verified

83 }
84
85 fn start(&self) -> Result<()> {
86 Command::new("systemctl")
87 .args(["start", &self.config.name])
88 .status()
89 .context("Failed to start service")?;
90 Ok(())
91 }
92
93 fn stop(&self) -> Result<()> {
94 Command::new("systemctl")

Callers 2

run_cloudpubFunction · 0.45
handle_service_commandFunction · 0.45

Calls 1

statusMethod · 0.45

Tested by

no test coverage detected