(&self)
| 91 | } |
| 92 | |
| 93 | fn stop(&self) -> Result<()> { |
| 94 | Command::new("systemctl") |
| 95 | .args(["stop", &self.config.name]) |
| 96 | .status() |
| 97 | .context("Failed to stop service")?; |
| 98 | Ok(()) |
| 99 | } |
| 100 | |
| 101 | fn status(&self) -> Result<ServiceStatus> { |
| 102 | let service_path = self.service_file_path(); |