I'm trying to load a LaunchAgent in
~/Library/LaunchAgents and although, from command line, it "appears" to load. However, if I try to load it again it says it's "already loaded".
But a process for the application isn't running.
ps -e | grep mongo shows nothing (well it shows this
Anyone know how to troubleshoot these kinds of problems?
Only thing I can find is in
Feb 9 13:15:26 imac com.apple.launchd.peruser.502 (homebrew.mxcl.mongodb): Ignored this key: UserName
I'm assuming it's ignoring the UserName because it's being launched from my User directory:
~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist. And as per docs this is to be expected.
I can launch the application just fine from Terminal:
Here's the LaunchAgent 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>homebrew.mxcl.mongodb</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/mongod</string> <string>run</string> <string>--config</string> <string>/usr/local/etc/mongod.conf</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>UserName</key> <string>meltemi</string> <key>WorkingDirectory</key> <string>/usr/local</string> <key>StandardErrorPath</key> <string>/usr/local/var/log/mongodb/output.log</string> <key>StandardOutPath</key> <string>/usr/local/var/log/mongodb/output.log</string> </dict> </plist>