Last active
March 14, 2016 21:34
-
-
Save oki/a3568592b5a3d9f82c8b to your computer and use it in GitHub Desktop.
plist for elasticsearch from brew (with java 1.7)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew info elasticsearch | |
elasticsearch: stable 1.3.1, HEAD | |
http://www.elasticsearch.org | |
/usr/local/Cellar/elasticsearch/1.3.0 (36 files, 30M) | |
Built from source | |
/usr/local/Cellar/elasticsearch/1.3.1 (36 files, 30M) * | |
Built from source | |
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/elasticsearch.rb | |
==> Caveats | |
Data: /usr/local/var/elasticsearch/elasticsearch_oki/ | |
Logs: /usr/local/var/log/elasticsearch/elasticsearch_oki.log | |
Plugins: /usr/local/var/lib/elasticsearch/plugins/ | |
ElasticSearch requires Java 7; you will need to install an appropriate JDK. | |
To reload elasticsearch after an upgrade: | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -version | |
java version "1.7.0_65" | |
Java(TM) SE Runtime Environment (build 1.7.0_65-b17) | |
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ uname -a | |
Darwin bouncyleek.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>homebrew.mxcl.elasticsearch</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/elasticsearch</string> | |
<string>--config=/usr/local/Cellar/elasticsearch/1.3.1/config/elasticsearch.yml</string> | |
</array> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>JAVA_HOME</key> | |
<string>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home</string> | |
</dict> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>/usr/local/var</string> | |
<key>StandardErrorPath</key> | |
<string>/usr/local/var/log/elasticsearch/elasticsearch-errors.log</string> | |
<key>StandardOutPath</key> | |
<string>/dev/null</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow... why isn't the JAVA_HOME variable part of the default configuration?