aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-09-26 14:43:26 +0100
committerMike McQuaid2012-09-26 14:43:26 +0100
commitd56800f2d48f645bb9a388eaa0f45f57fc51e992 (patch)
tree380a452808f4952e855f4572c986082cf9fe8cf7 /Library
parentc70778481a05dc2dbca1cb603217bd96c830c6c1 (diff)
downloadhomebrew-d56800f2d48f645bb9a388eaa0f45f57fc51e992.tar.bz2
jenkins: clean up launchd stuff.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/jenkins.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/jenkins.rb b/Library/Formula/jenkins.rb
index e78399b08..8120dab3e 100644
--- a/Library/Formula/jenkins.rb
+++ b/Library/Formula/jenkins.rb
@@ -20,12 +20,11 @@ class Jenkins < Formula
def caveats; <<-EOS.undent
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
- cp #{plist_path} ~/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}
- cp #{plist_path} ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
Or start it manually:
@@ -44,7 +43,7 @@ class Jenkins < Formula
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
- <string>#{libexec}/jenkins.war</string>
+ <string>#{HOMEBREW_PREFIX}/opt/jenkins/libexec/jenkins.war</string>
<string>--httpListenAddress=127.0.0.1</string>
</array>
<key>RunAtLoad</key>