Sometimes I see that firing the command doesn't load the app at all. This happens rarely but are there any known conditions or situations where this command would fail? Is there any way to debug launchctl?
launchctl load /Library/LaunchAgents/com.xyz.plist
The contents of the plist are:
<dict>
<key>Label</key>
<string>com.xyz</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/xyz.app/Contents/MacOS/xyz</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>OPT</key>
<string>xyz</string>
</dict>
<key>ExitTimeOut</key>
<integer>10</integer>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>RunAtLoad</key>
<true/>
<key>EnableTransactions</key>
<false/>
launchctl dumpstate shows STATE=WAITING. Why?
Any help will be appreciable.