summarylogtreecommitdiffstats
path: root/elasticsearch.service
diff options
context:
space:
mode:
authorEric Liu2019-03-26 21:13:10 -0400
committerEric Liu2019-03-26 21:13:10 -0400
commita8872da7c4c8b703ef50cddab223f94fdef04f65 (patch)
treef9bd00b27ab088960bb310d7e80c9c5d816caf43 /elasticsearch.service
downloadaur-a8872da7c4c8b703ef50cddab223f94fdef04f65.tar.gz
initial commit for ELK with xpack
Diffstat (limited to 'elasticsearch.service')
-rw-r--r--elasticsearch.service40
1 files changed, 40 insertions, 0 deletions
diff --git a/elasticsearch.service b/elasticsearch.service
new file mode 100644
index 000000000000..7246c2b864b9
--- /dev/null
+++ b/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