Skip to content

Commit

Permalink
activemq: Adding plist configured with AbandonProcessGroup=true, ad…
Browse files Browse the repository at this point in the history
…dressing original issue in #39477.

Closes #2825.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
douglasjose authored and dunn committed Jul 9, 2016
1 parent d14d435 commit 6cafb22
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/activemq.rb
Expand Up @@ -14,6 +14,32 @@ def install
(bin/"activemq").write_env_script libexec/"bin/activemq", Language::Java.java_home_env("1.6+")
end

plist_options :manual => "activemq start"

def plist; <<-EOS.undent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>RunAtLoad</key>
<true/>
<key>AbandonProcessGroup</key>
<true/>
<key>WorkingDirectory</key>
<string>#{libexec}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/activemq</string>
<string>start</string>
</array>
</dict>
</plist>
EOS
end

test do
system "#{bin}/activemq", "browse", "-h"
end
Expand Down

0 comments on commit 6cafb22

Please sign in to comment.