MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / verify_launchd_started

Function verify_launchd_started

src/daemon/service.rs:809–814  ·  view source on GitHub ↗
(target: &str, socket_path: &Path)

Source from the content-addressed store, hash-verified

807}
808
809fn verify_launchd_started(target: &str, socket_path: &Path) -> Result<()> {
810 if daemon_socket_state(socket_path) == DaemonSocketState::Connectable {
811 return Ok(());
812 }
813 run_launchctl(&["print", target]).map(|_| ())
814}
815
816fn launchctl_spawn(args: &[&str]) -> Result<std::process::Output> {
817 Command::new("launchctl")

Callers 1

launchd_startFunction · 0.85

Calls 2

daemon_socket_stateFunction · 0.85
run_launchctlFunction · 0.85

Tested by

no test coverage detected