Skip to content
This repository
Browse code

Updated launchd caveats for MySQL

  • Loading branch information...
commit 1ca6b6b042c298e5c8b7b4427966d2315e61beca 1 parent a680b66
authored February 18, 2010 adamv committed April 16, 2010

Showing 1 changed file with 14 additions and 3 deletions. Show diff stats Hide diff stats

  1. 17  Library/Formula/mysql.rb
17  Library/Formula/mysql.rb
@@ -59,9 +59,20 @@ def caveats; <<-EOS.undent
59 59
     Set up databases with:
60 60
         mysql_install_db
61 61
 
62  
-    Automatically load on login with:
63  
-        launchctl load -w #{prefix}/com.mysql.mysqld.plist
64  
-
  62
+    If this is your first install, automatically load on login with:
  63
+        cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
  64
+        launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
  65
+
  66
+    If this is an upgrade and you already have the com.mysql.mysqld.plist loaded: 
  67
+        launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
  68
+        cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
  69
+        launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
  70
+
  71
+    Note on upgrading: 
  72
+        We overwrite any existing com.mysql.mysqld.plist in ~/Library/LaunchAgents 
  73
+        if we are upgrading becuase previous versions of this brew created the 
  74
+        plist with a version specific program argument.
  75
+    
65 76
     Or start manually with:
66 77
         #{prefix}/share/mysql/mysql.server start
67 78
     EOS

0 notes on commit 1ca6b6b

Please sign in to comment.
Something went wrong with that request. Please try again.