(_service_path: &str)
| 163 | } |
| 164 | |
| 165 | pub 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 | |
| 177 | pub fn remove_autostart_post_delete() -> Result<(), Error> { |
| 178 | let mut daemon_reload = Command::new("systemctl"); |
no test coverage detected