From 3be93c54f66e19b8697f29153fee0f3e892f5d1f Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Fri, 3 Mar 2023 09:28:55 -0800 Subject: [PATCH] Use `launchctl load -w` on macOS (#298) --- src/action/common/configure_init_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action/common/configure_init_service.rs b/src/action/common/configure_init_service.rs index ddd6fce..3e7e9bb 100644 --- a/src/action/common/configure_init_service.rs +++ b/src/action/common/configure_init_service.rs @@ -114,7 +114,7 @@ impl Action for ConfigureInitService { execute_command( Command::new("launchctl") .process_group(0) - .arg("load") + .args(&["load", "-w"]) .arg(DARWIN_NIX_DAEMON_DEST) .stdin(std::process::Stdio::null()), )