[arch-commits] Commit in elasticsearch/trunk (PKGBUILD elasticsearch at .service)
Massimiliano Torromeo
mtorromeo at nymeria.archlinux.org
Wed Jan 29 16:44:18 UTC 2014
Date: Wednesday, January 29, 2014 @ 17:44:18
Author: mtorromeo
Revision: 104998
upgpkg: elasticsearch 0.90.10-2
Implemented elasticsearch at .service for multi-node setups
Added:
elasticsearch/trunk/elasticsearch at .service
Modified:
elasticsearch/trunk/PKGBUILD
------------------------+
PKGBUILD | 5 ++++-
elasticsearch at .service | 13 +++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-29 14:28:12 UTC (rev 104997)
+++ PKGBUILD 2014-01-29 16:44:18 UTC (rev 104998)
@@ -5,7 +5,7 @@
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 @@
source=(
"http://download.elasticsearch.org/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz"
elasticsearch.service
+ elasticsearch at .service
elasticsearch-tmpfile.conf
)
@@ -66,6 +67,7 @@
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 at .service" "$pkgdir/usr/lib/systemd/system/elasticsearch at .service"
install -Dm644 "$srcdir/elasticsearch-tmpfile.conf" "$pkgdir/usr/lib/tmpfiles.d/elasticsearch.conf"
}
@@ -72,4 +74,5 @@
sha256sums=('78c87f600878a6cab41c1d447f6a40b25892a59f8fb49da11392a682884fb8df'
'09a4027780d73103c26f311c64774dcbc47b5e1d54789c1f2d9c697f518f2eeb'
+ 'e3dd705bec204b8572456344b90c4773f867965a1215c22b6e9518f0aa268a2d'
'48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f')
Added: elasticsearch at .service
===================================================================
--- elasticsearch at .service (rev 0)
+++ elasticsearch at .service 2014-01-29 16:44:18 UTC (rev 104998)
@@ -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
More information about the arch-commits
mailing list