(unit: &str)
| 403 | } |
| 404 | |
| 405 | fn socket_path_from_unit_text(unit: &str) -> Option<PathBuf> { |
| 406 | match ServiceRunner::current().ok()? { |
| 407 | ServiceRunner::Systemd => socket_path_from_service_unit(unit), |
| 408 | ServiceRunner::Launchd => socket_path_from_launchd_plist(unit), |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | pub fn uninstall_service(stop: bool) -> Result<PathBuf> { |
| 413 | let runner = ServiceRunner::current()?; |
no test coverage detected