I want to run a unison sync service running in the background whenever I login. But the status code of my agent is 78
. I don't know why, I tried some fix posted online, but it just doesn't work.
What's the problem?? below is the plist file for my service.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>syncmyproject</string>
<key>StandardOutPath</key>
<string>/var/log/syncmyproject.log</string>
<key>StandardErrorPath</key>
<string>/var/log/syncmyproject.log</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Debug</key>
<true/>
<key>EnableGlobbing</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/unison</string>
<string>-auto</string>
<string>-batch</string>
<string>-repeat watch</string>
<string>~/home/project</string>
<string>~/project</string>
</array>
</dict>
</plist>
grep
this file for possible clues as to what's wrong:/var/log/system.log
– Hypochondrium/var/log/system.log
or/var/log/com.apple.xpc.launchd/launchd.log
should be the accepted answer. In my caselaunchctl list
returned just "78" and that's it, butlaunchd.log
had a much more detailed error message. – Hah