Permalink
Browse files

sonar: clean up launchd stuff.

  • Loading branch information...
1 parent e729dcb commit 97953b3961febb9a794bc20a2c6b1497674f85b5 @dgageot committed Oct 3, 2012
Showing with 13 additions and 14 deletions.
  1. +13 −14 Library/Formula/sonar.rb
@@ -26,20 +26,19 @@ def install
end
end
- def caveats; <<-EOS
-If this is your first install, automatically load on login with:
- mkdir -p ~/Library/LaunchAgents
- cp #{plist_path} ~/Library/LaunchAgents/
- launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
-
-If this is an upgrade and you already have the #{plist_path.basename} loaded:
- launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename}
- cp #{plist_path} ~/Library/LaunchAgents/
- launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
-
-Or start it manually:
- #{HOMEBREW_PREFIX}/bin/sonar console
-EOS
+ def caveats; <<-EOS.undent
+ If this is your first install, automatically load on login with:
+ mkdir -p ~/Library/LaunchAgents
+ ln -nfs #{plist_path} ~/Library/LaunchAgents/
+ launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
+
+ If this is an upgrade and you already have the #{plist_path.basename} loaded:
+ launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename}
+ launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
+
+ Or start it manually:
+ #{HOMEBREW_PREFIX}/bin/sonar console
+ EOS
end
def startup_plist

0 comments on commit 97953b3

Please sign in to comment.