(&self)
| 83 | } |
| 84 | |
| 85 | fn start(&self) -> Result<()> { |
| 86 | Command::new("systemctl") |
| 87 | .args(["start", &self.config.name]) |
| 88 | .status() |
| 89 | .context("Failed to start service")?; |
| 90 | Ok(()) |
| 91 | } |
| 92 | |
| 93 | fn stop(&self) -> Result<()> { |
| 94 | Command::new("systemctl") |
no test coverage detected