MCPcopy Create free account
hub / github.com/clawshell/clawshell / service_stop

Function service_stop

src/platform/linux.rs:112–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112pub fn service_stop() -> Result<(), Error> {
113 let mut stop = Command::new("systemctl");
114 stop.args(["stop", SERVICE_UNIT_NAME]);
115 command_status(&mut stop, "systemctl stop clawshell.service")?;
116 Ok(())
117}
118
119pub fn service_restart() -> Result<(), Error> {
120 let mut restart = Command::new("systemctl");

Callers 1

cmd_stopFunction · 0.50

Calls 1

command_statusFunction · 0.85

Tested by

no test coverage detected