(&self, service_path: &Path, start: bool, socket_path: &Path)
| 541 | } |
| 542 | |
| 543 | fn install(&self, service_path: &Path, start: bool, socket_path: &Path) -> Result<()> { |
| 544 | match self { |
| 545 | Self::Systemd => { |
| 546 | if start { |
| 547 | run_systemctl(&["daemon-reload"])?; |
| 548 | run_systemctl(&["enable", "--now", super::SERVICE_NAME])?; |
| 549 | } |
| 550 | Ok(()) |
| 551 | } |
| 552 | Self::Launchd => launchd_install(service_path, start, socket_path), |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | fn refresh(&self, service_path: &Path, socket_path: &Path) -> Result<()> { |
| 557 | match self { |
no test coverage detected