aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/redis.rb
diff options
context:
space:
mode:
authorCarlos Rodriguez2011-02-27 00:07:58 -0800
committerAdam Vandenberg2011-03-05 10:13:14 -0800
commitf94333ce4fe68657001e5f0e2e34817102865d15 (patch)
tree8f8fa49875e43fc26e516edec749e1ce4b099a91 /Library/Formula/redis.rb
parent79e509711daa0f7ee25bf27508d8b7e77dd6d642 (diff)
downloadhomebrew-f94333ce4fe68657001e5f0e2e34817102865d15.tar.bz2
Clean up LaunchAgent caveats.
Documentation now has instructions on creating ~/Library/LaunchAgents directory for first time installs of Formulas. Appending trailing slash to Formula documentation in regards to copying plists to LaunchAgents directory. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/redis.rb')
-rw-r--r--Library/Formula/redis.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb
index cf9c052be..bebd1f930 100644
--- a/Library/Formula/redis.rb
+++ b/Library/Formula/redis.rb
@@ -34,12 +34,13 @@ class Redis <Formula
def caveats
<<-EOS.undent
If this is your first install, automatically load on login with:
- cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ 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
+ cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
To start redis manually: