()
| 117 | } |
| 118 | |
| 119 | pub fn service_restart() -> Result<(), Error> { |
| 120 | let mut restart = Command::new("systemctl"); |
| 121 | restart.args(["restart", SERVICE_UNIT_NAME]); |
| 122 | command_status(&mut restart, "systemctl restart clawshell.service")?; |
| 123 | Ok(()) |
| 124 | } |
| 125 | |
| 126 | pub fn service_is_running() -> Result<bool, Error> { |
| 127 | let mut is_active = Command::new("systemctl"); |
no test coverage detected