summaryrefslogtreecommitdiff
path: root/community/elasticsearch/elasticsearch.service
blob: f1f55962580d6078a14343334ea7f9f0580c8e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=ElasticSearch
Documentation=http://www.elasticsearch.org
After=network.target

[Service]
Type=forking
User=elasticsearch
Group=elasticsearch
ExecStartPre=-/usr/bin/install -o elasticsearch -g elasticsearch -d /var/lib/elasticsearch
ExecStartPre=-/usr/bin/install -o elasticsearch -g elasticsearch -d /var/log/elasticsearch
ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/elasticsearch.pid
EnvironmentFile=-/etc/default/elasticsearch
RuntimeDirectory=elasticsearch
PIDFile=/run/elasticsearch/elasticsearch.pid
LimitNOFILE=65535
LimitMEMLOCK=infinity
TimeoutStopSec=20
Restart=on-failure

[Install]
WantedBy=multi-user.target