Browse files

Updated launchd caveats for MySQL

  • Loading branch information...
1 parent a680b66 commit 1ca6b6b042c298e5c8b7b4427966d2315e61beca Luke Gallagher committed with adamv Feb 17, 2010
Showing with 14 additions and 3 deletions.
  1. +14 −3 Library/Formula/mysql.rb
17 Library/Formula/mysql.rb
@@ -59,9 +59,20 @@ def caveats; <<-EOS.undent
Set up databases with:
- Automatically load on login with:
- launchctl load -w #{prefix}/com.mysql.mysqld.plist
+ If this is your first install, automatically load on login with:
+ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
+ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+ If this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
+ launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
+ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+ Note on upgrading:
+ We overwrite any existing com.mysql.mysqld.plist in ~/Library/LaunchAgents
+ if we are upgrading becuase previous versions of this brew created the
+ plist with a version specific program argument.
Or start manually with:
#{prefix}/share/mysql/mysql.server start

0 comments on commit 1ca6b6b

Please sign in to comment.