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

Function remove_autostart_service

src/platform/linux.rs:165–175  ·  view source on GitHub ↗
(_service_path: &str)

Source from the content-addressed store, hash-verified

163}
164
165pub fn remove_autostart_service(_service_path: &str) -> Result<(), Error> {
166 let mut disable = Command::new("systemctl");
167 disable.args(["disable", "clawshell.service"]);
168 command_status(&mut disable, "systemctl disable clawshell.service")?;
169
170 let mut stop = Command::new("systemctl");
171 stop.args(["stop", SERVICE_UNIT_NAME]);
172 command_status(&mut stop, "systemctl stop clawshell.service")?;
173
174 Ok(())
175}
176
177pub fn remove_autostart_post_delete() -> Result<(), Error> {
178 let mut daemon_reload = Command::new("systemctl");

Callers 1

cmd_uninstallFunction · 0.50

Calls 1

command_statusFunction · 0.85

Tested by

no test coverage detected