Skip to content
This repository
Browse code

The caveats/info on redis were wrong - corrected

Signed-off-by: David Höppner <0xffea@gmail.com>
  • Loading branch information...
commit cfcf1a055333dac84ae9d7ed1a7c95cad2b1d77d 1 parent b3a1b72
Lee Packham authored September 03, 2010 0xffea committed September 04, 2010

Showing 1 changed file with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. 10  Library/Formula/redis.rb
10  Library/Formula/redis.rb
@@ -32,8 +32,14 @@ def install
32 32
 
33 33
   def caveats
34 34
     <<-EOS.undent
35  
-      Automatically load on login with:
36  
-        launchctl load -w #{prefix}/io.redis.redis-server.plist
  35
+    If this is your first install, automatically load on login with:
  36
+        cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
  37
+        launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
  38
+
  39
+    If this is an upgrade and you already have the io.redis.redis-server.plist loaded:
  40
+        launchctl unload -w ~/Library/LaunchAgents/io.redis.redis-server.plist
  41
+        cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
  42
+        launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
37 43
 
38 44
       To start redis manually:
39 45
         redis-server #{etc}/redis.conf

0 notes on commit cfcf1a0

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