()
| 110 | } |
| 111 | |
| 112 | pub 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 | |
| 119 | pub fn service_restart() -> Result<(), Error> { |
| 120 | let mut restart = Command::new("systemctl"); |
no test coverage detected