about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-08-27T14·57-0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-08-27T14·58-0400
commit800fba1037ad97ff5e6d9acf9e820a30f0922f59 (patch)
treee59403fdecd7297a15882fa10c4349d269eec8a8 /misc
parent324a5dc92f8e50e6b637c5e67dea48c80be10837 (diff)
Use wait4path on org.nixos.nix-daemon.plist
When using a volume, the nix-daemon path may not exist. To avoid this
issue, we must use the wait4path tool. This should solve one of the
issues in multi-user on macOS Catalina.
Diffstat (limited to 'misc')
-rw-r--r--misc/launchd/org.nixos.nix-daemon.plist.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in
index 92ed12fa5090..6bc448d285ea 100644
--- a/misc/launchd/org.nixos.nix-daemon.plist.in
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -14,7 +14,12 @@
     <key>RunAtLoad</key>
     <true/>
     <key>Program</key>
-    <string>@bindir@/nix-daemon</string>
+    <string>/bin/sh</string>
+    <key>ProgramArguments</key>
+    <array>
+      <string>-c</string>
+      <string>/bin/wait4path @bindir@/nix-daemon &amp;&amp; @bindir@/nix-daemon</string>
+    </array>
     <key>StandardErrorPath</key>
     <string>/var/log/nix-daemon.log</string>
     <key>StandardOutPath</key>