User-domain agents need the Background session type to bootstrap into user/501, and activation should fail rather than silently unloading services when launchctl bootstrap fails.
26 lines
No EOL
742 B
Text
26 lines
No EOL
742 B
Text
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>org.nix-community.home.git-sync-test</string>
|
|
<key>LimitLoadToSessionType</key>
|
|
<string>Background</string>
|
|
<key>ProcessType</key>
|
|
<string>Background</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/bin/sh</string>
|
|
<string>-c</string>
|
|
<string>/bin/wait4path /nix/store && exec @git-sync@/bin/git-sync</string>
|
|
</array>
|
|
<key>StartInterval</key>
|
|
<integer>500</integer>
|
|
<key>WatchPaths</key>
|
|
<array>
|
|
<string>/a/path</string>
|
|
</array>
|
|
<key>WorkingDirectory</key>
|
|
<string>/a/path</string>
|
|
</dict>
|
|
</plist> |