Use launchctl load -w on macOS (#298)

This commit is contained in:
Cole Helbling 2023-03-03 09:28:55 -08:00 committed by GitHub
parent 792639b6ad
commit 3be93c54f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ impl Action for ConfigureInitService {
execute_command( execute_command(
Command::new("launchctl") Command::new("launchctl")
.process_group(0) .process_group(0)
.arg("load") .args(&["load", "-w"])
.arg(DARWIN_NIX_DAEMON_DEST) .arg(DARWIN_NIX_DAEMON_DEST)
.stdin(std::process::Stdio::null()), .stdin(std::process::Stdio::null()),
) )