(stop: bool)
| 799 | } |
| 800 | |
| 801 | fn launchd_before_uninstall(stop: bool) -> Result<()> { |
| 802 | if !stop { |
| 803 | return Ok(()); |
| 804 | } |
| 805 | let target = launchd_service_target()?; |
| 806 | run_launchd_commands(&launchd_uninstall_command_plan(&target)) |
| 807 | } |
| 808 | |
| 809 | fn verify_launchd_started(target: &str, socket_path: &Path) -> Result<()> { |
| 810 | if daemon_socket_state(socket_path) == DaemonSocketState::Connectable { |
no test coverage detected