diff options
Diffstat (limited to 'Library/Formula/solr.rb')
| -rw-r--r-- | Library/Formula/solr.rb | 27 | 
1 files changed, 22 insertions, 5 deletions
| 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 +      <?xml version="1.0" encoding="UTF-8"?> +      <!DOCTYPE plist PUBLIC "-//Apple Computer//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>ProgramArguments</key> +          <array> +            <string>#{opt_bin}/solr</string> +            <string>start</string> +            <string>-f</string> +          </array> +          <key>ServiceDescription</key> +          <string>#{name}</string> +          <key>WorkingDirectory</key> +          <string>#{HOMEBREW_PREFIX}</string> +          <key>RunAtLoad</key> +          <true/> +      </dict> +      </plist>      EOS    end  end | 
