From d3b069bba7fb8f58f816ef44f9d5ceaa0fa584a7 Mon Sep 17 00:00:00 2001 From: Arne Jørgensen Date: Sun, 12 Oct 2014 01:21:27 +0200 Subject: solr: add startup plist Added a plist startup like was previously done in [solr36](https://github.com/Homebrew/homebrew-versions/commit/4fa8b9b3c8f37667f1d993a53a6b9da383d87179) at Homebrew/homebrew-versions#366. Closes #32069. Signed-off-by: Jack Nagel --- Library/Formula/solr.rb | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/solr.rb b/Library/Formula/solr.rb index e646fbe76..962ed85fd 100644 --- a/Library/Formula/solr.rb +++ b/Library/Formula/solr.rb @@ -19,12 +19,29 @@ class Solr < Formula prefix.install "#{libexec}/example" end - def caveats; <<-EOS.undent - To start solr: - solr /absolute/path/to/solr/config/dir + plist_options :manual => "solr start" - See the solr homepage for more setup information: - brew home solr + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + ProgramArguments + + #{opt_bin}/solr + start + -f + + ServiceDescription + #{name} + WorkingDirectory + #{HOMEBREW_PREFIX} + RunAtLoad + + + EOS end end -- cgit v1.2.3