summaryrefslogtreecommitdiff
path: root/community/elasticsearch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-14 03:37:58 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-14 03:37:58 +0000
commit86a5624291a8a72d9a0a2c51fcc64bf6e221524b (patch)
treee585f1910631fdca9c14bc3127c269c8005c838e /community/elasticsearch
parentb6ad8075baf858359209aa7f1af82a143dcc0c80 (diff)
Fri Feb 14 03:35:43 UTC 2014
Diffstat (limited to 'community/elasticsearch')
-rw-r--r--community/elasticsearch/PKGBUILD15
-rw-r--r--community/elasticsearch/elasticsearch-sysctl.conf1
-rw-r--r--community/elasticsearch/elasticsearch.service5
-rw-r--r--community/elasticsearch/elasticsearch@.service5
4 files changed, 18 insertions, 8 deletions
diff --git a/community/elasticsearch/PKGBUILD b/community/elasticsearch/PKGBUILD
index 75361e5e8..eb45c7f30 100644
--- a/community/elasticsearch/PKGBUILD
+++ b/community/elasticsearch/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 105273 2014-02-03 18:00:50Z mtorromeo $
+# $Id: PKGBUILD 105667 2014-02-13 10:14:53Z mtorromeo $
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Marcello "mererghost" Rocha <https://github.com/mereghost>
# Refactored by Blaž "Speed" Hrastnik <https://github.com/archSeer>
pkgname=elasticsearch
-pkgver=0.90.11
+pkgver=1.0.0
pkgrel=1
pkgdesc="Distributed RESTful search engine built on top of Lucene"
arch=('i686' 'x86_64')
@@ -17,6 +17,7 @@ source=(
elasticsearch.service
elasticsearch@.service
elasticsearch-tmpfile.conf
+ elasticsearch-sysctl.conf
)
backup=('etc/elasticsearch/elasticsearch.yml'
@@ -70,9 +71,11 @@ package() {
install -Dm644 "$srcdir/elasticsearch@.service" "$pkgdir/usr/lib/systemd/system/elasticsearch@.service"
install -Dm644 "$srcdir/elasticsearch-tmpfile.conf" "$pkgdir/usr/lib/tmpfiles.d/elasticsearch.conf"
+ install -Dm644 "$srcdir/elasticsearch-sysctl.conf" "$pkgdir/usr/lib/sysctl.d/elasticsearch.conf"
}
-sha256sums=('cff503078fcb3e1b1d2b966e9173599be38a1a451278f587415c7f2311fd5697'
- '09a4027780d73103c26f311c64774dcbc47b5e1d54789c1f2d9c697f518f2eeb'
- 'e3dd705bec204b8572456344b90c4773f867965a1215c22b6e9518f0aa268a2d'
- '48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f')
+sha256sums=('0150bc7609c885eb2868bd27b817051e08b4bbe50a8aad5a51698c43283cd51b'
+ 'ab13ccda28bf90a10b570e095afc47ddef68da7e45546b2d45e74722c9095f0a'
+ 'a04ac09172158611a03dda096b670fe6586ae11b6b3d4de7965ed2b90cb3319f'
+ '48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f'
+ 'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c')
diff --git a/community/elasticsearch/elasticsearch-sysctl.conf b/community/elasticsearch/elasticsearch-sysctl.conf
new file mode 100644
index 000000000..32da2c91c
--- /dev/null
+++ b/community/elasticsearch/elasticsearch-sysctl.conf
@@ -0,0 +1 @@
+vm.max_map_count=262144 \ No newline at end of file
diff --git a/community/elasticsearch/elasticsearch.service b/community/elasticsearch/elasticsearch.service
index 28364b878..4121332af 100644
--- a/community/elasticsearch/elasticsearch.service
+++ b/community/elasticsearch/elasticsearch.service
@@ -1,12 +1,15 @@
[Unit]
Description=ElasticSearch
+Documentation=http://www.elasticsearch.org
After=network.target
[Service]
User=elasticsearch
Type=forking
PIDFile=/run/elasticsearch/elasticsearch.pid
-ExecStart=/usr/bin/elasticsearch -p /run/elasticsearch/elasticsearch.pid
+ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/elasticsearch.pid
+LimitNOFILE=65535
+TimeoutStopSec=20
Restart=on-failure
[Install]
diff --git a/community/elasticsearch/elasticsearch@.service b/community/elasticsearch/elasticsearch@.service
index b2940c91d..093f7df59 100644
--- a/community/elasticsearch/elasticsearch@.service
+++ b/community/elasticsearch/elasticsearch@.service
@@ -1,12 +1,15 @@
[Unit]
Description=ElasticSearch
+Documentation=http://www.elasticsearch.org
After=network.target
[Service]
User=elasticsearch
Type=forking
PIDFile=/run/elasticsearch/%I.pid
-ExecStart=/usr/bin/elasticsearch -p /run/elasticsearch/%I.pid -Des.config=/etc/elasticsearch/%I.yml
+ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/%I.pid -Des.config=/etc/elasticsearch/%I.yml
+LimitNOFILE=65535
+TimeoutStopSec=20
Restart=on-failure
[Install]