Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Homebrew MYSQL install on a Lion Mac Computer.

Now I want Mysql to start even if the user is not signed in. Can I now simply copy the LaunchAgent .plist file to the LaunchDaemons folder. So assuming this is possible, then the next question is, what the user name should be in the plist file.

This is the plist file:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>KeepAlive</key>
  <true/>
  <key>Label</key>
  <string>homebrew.mxcl.mysql</string>
  <key>Program</key>
  <string>/usr/local/bin/mysqld_safe</string>
  <key>RunAtLoad</key>
  <true/>
  <key>UserName</key>
  <string>??????????????????????????????????????????????????</string>
  <key>WorkingDirectory</key>
  <string>/usr/local/var</string>
</dict>
</plist>
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.