summaryrefslogtreecommitdiff
path: root/community/elasticsearch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-30 03:49:22 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-30 03:49:22 +0000
commitabecd94e38c95522f241c335c76aa3150e43eedd (patch)
treee1aa639a866772861431c2ab8ced2ee79100ae9d /community/elasticsearch
parent0a521de4508e14363c59922ab2744ab699e30288 (diff)
Thu Jan 30 03:47:11 UTC 2014
Diffstat (limited to 'community/elasticsearch')
-rw-r--r--community/elasticsearch/PKGBUILD7
-rw-r--r--community/elasticsearch/elasticsearch@.service13
2 files changed, 18 insertions, 2 deletions
diff --git a/community/elasticsearch/PKGBUILD b/community/elasticsearch/PKGBUILD
index af8d71bb0..150a9376d 100644
--- a/community/elasticsearch/PKGBUILD
+++ b/community/elasticsearch/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 103723 2014-01-10 13:09:44Z mtorromeo $
+# $Id: PKGBUILD 104999 2014-01-29 16:48:56Z 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.10
-pkgrel=1
+pkgrel=2
pkgdesc="Distributed RESTful search engine built on top of Lucene"
arch=('i686' 'x86_64')
url="http://www.elasticsearch.org/"
@@ -15,6 +15,7 @@ install='elasticsearch.install'
source=(
"http://download.elasticsearch.org/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz"
elasticsearch.service
+ elasticsearch@.service
elasticsearch-tmpfile.conf
)
@@ -66,10 +67,12 @@ package() {
install -Dm644 bin/elasticsearch.in.sh "$pkgdir/usr/share/elasticsearch/elasticsearch.in.sh"
install -Dm644 "$srcdir/elasticsearch.service" "$pkgdir/usr/lib/systemd/system/elasticsearch.service"
+ 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"
}
sha256sums=('78c87f600878a6cab41c1d447f6a40b25892a59f8fb49da11392a682884fb8df'
'09a4027780d73103c26f311c64774dcbc47b5e1d54789c1f2d9c697f518f2eeb'
+ 'e3dd705bec204b8572456344b90c4773f867965a1215c22b6e9518f0aa268a2d'
'48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f')
diff --git a/community/elasticsearch/elasticsearch@.service b/community/elasticsearch/elasticsearch@.service
new file mode 100644
index 000000000..b2940c91d
--- /dev/null
+++ b/community/elasticsearch/elasticsearch@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=ElasticSearch
+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
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target