summaryrefslogtreecommitdiff
path: root/community/elasticsearch/elasticsearch@.service
blob: 45b3c372444737baebf80f92afb10829915dd00a (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/%I.pid -Des.config=/etc/elasticsearch/%I.yml
EnvironmentFile=-/etc/default/elasticsearch
RuntimeDirectory=elasticsearch
PIDFile=/run/elasticsearch/%I.pid
LimitNOFILE=65535
LimitMEMLOCK=infinity
TimeoutStopSec=20
Restart=on-failure

[Install]
WantedBy=multi-user.target