summaryrefslogtreecommitdiff
path: root/maintained/elasticsearch6/elasticsearch.service
diff options
context:
space:
mode:
Diffstat (limited to 'maintained/elasticsearch6/elasticsearch.service')
-rw-r--r--maintained/elasticsearch6/elasticsearch.service40
1 files changed, 40 insertions, 0 deletions
diff --git a/maintained/elasticsearch6/elasticsearch.service b/maintained/elasticsearch6/elasticsearch.service
new file mode 100644
index 0000000..7246c2b
--- /dev/null
+++ b/maintained/elasticsearch6/elasticsearch.service
@@ -0,0 +1,40 @@
+[Unit]
+Description=Elasticsearch
+Documentation=http://www.elastic.co
+Wants=elasticsearch-keystore.service
+Wants=network.target
+After=elasticsearch-keystore.service
+After=network.target
+
+[Service]
+Type=forking
+RuntimeDirectory=elasticsearch
+PIDFile=/run/elasticsearch/elasticsearch.pid
+
+Environment=JAVA_HOME=/usr/lib/jvm/default-runtime
+EnvironmentFile=-/etc/default/elasticsearch
+Environment=ES_PATH_CONF=/etc/elasticsearch
+Environment=ES_TMPDIR=/tmp
+
+PrivateTmp=true
+WorkingDirectory=/usr/share/elasticsearch
+
+User=elasticsearch
+Group=elasticsearch
+
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d \
+ -p /run/elasticsearch/elasticsearch.pid
+
+LimitNOFILE=65536
+LimitNPROC=4096
+LimitAS=infinity
+LimitFSIZE=infinity
+
+Restart=on-failure
+KillMode=process
+SendSIGKILL=no
+TimeoutStopSec=0
+SuccessExitStatus=143
+
+[Install]
+WantedBy=multi-user.target