(&self, service_path: &Path, socket_path: &Path)
| 554 | } |
| 555 | |
| 556 | fn refresh(&self, service_path: &Path, socket_path: &Path) -> Result<()> { |
| 557 | match self { |
| 558 | Self::Systemd => { |
| 559 | run_systemctl(&["daemon-reload"])?; |
| 560 | run_systemctl(&["enable", super::SERVICE_NAME])?; |
| 561 | run_systemctl(&["restart", super::SERVICE_NAME])?; |
| 562 | Ok(()) |
| 563 | } |
| 564 | Self::Launchd => launchd_refresh(service_path, socket_path), |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | fn before_uninstall(&self, stop: bool) -> Result<()> { |
| 569 | match self { |
no test coverage detected