summaryrefslogtreecommitdiff
path: root/community/elasticsearch/elasticsearch@.service
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/elasticsearch@.service
parent0a521de4508e14363c59922ab2744ab699e30288 (diff)
Thu Jan 30 03:47:11 UTC 2014
Diffstat (limited to 'community/elasticsearch/elasticsearch@.service')
-rw-r--r--community/elasticsearch/elasticsearch@.service13
1 files changed, 13 insertions, 0 deletions
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