diff options
| -rw-r--r-- | Library/Formula/redis.rb | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb index c4dec36ff..276d2c90a 100644 --- a/Library/Formula/redis.rb +++ b/Library/Formula/redis.rb @@ -32,8 +32,14 @@ class Redis <Formula    def caveats      <<-EOS.undent -      Automatically load on login with: -        launchctl load -w #{prefix}/io.redis.redis-server.plist +    If this is your first install, automatically load on login with: +        cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents +        launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist + +    If this is an upgrade and you already have the io.redis.redis-server.plist loaded: +        launchctl unload -w ~/Library/LaunchAgents/io.redis.redis-server.plist +        cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents +        launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist        To start redis manually:          redis-server #{etc}/redis.conf  | 
