diff options
| author | Luke Gallagher | 2010-02-18 00:13:36 +1100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-16 09:47:37 -0700 |
| commit | 1ca6b6b042c298e5c8b7b4427966d2315e61beca (patch) | |
| tree | 0e7310f7fdb2c15c5d7d6797120e2aef87969c53 /Library/Formula | |
| parent | a680b66fc44c2ad517a34503a17f4c3cdeb5ed98 (diff) | |
| download | homebrew-1ca6b6b042c298e5c8b7b4427966d2315e61beca.tar.bz2 | |
Updated launchd caveats for MySQL
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mysql.rb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 0b4903104..1f2ecdc1f 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -59,9 +59,20 @@ class Mysql <Formula Set up databases with: mysql_install_db - 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 EOS |
