我想在每次登录时运行在后台运行的统一同步服务。但是我的代理人的状态码是78
。我不知道为什么,我尝试了一些在线发布的修复程序,但是它不起作用。
有什么问题??以下是我的服务的plist文件。
<?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>
最佳答案
我读了man launchctl
,发现78表示function not implemented
。它没有太大帮助。
最后,我使它工作了,实际上plist中存在错误,我建议安装brew cask install launchcontrol
,这是launchctl的gui工具,它可以帮助检测错误和排除故障。
关于launchd - 发射状态78是什么意思?为什么我的用户代理未运行?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34215527/