()
| 103 | } |
| 104 | |
| 105 | pub fn service_start() -> Result<(), Error> { |
| 106 | let mut start = Command::new("systemctl"); |
| 107 | start.args(["start", SERVICE_UNIT_NAME]); |
| 108 | command_status(&mut start, "systemctl start clawshell.service")?; |
| 109 | Ok(()) |
| 110 | } |
| 111 | |
| 112 | pub fn service_stop() -> Result<(), Error> { |
| 113 | let mut stop = Command::new("systemctl"); |
no test coverage detected