summarylogtreecommitdiffstats
path: root/elasticsearch.service
blob: 96abcdb8a7d48ec0039cc913682b3525665fe5ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[Unit]
Description=Elasticsearch
Wants=elasticsearch-keystore.service
Wants=network-online.target
After=elasticsearch-keystore.service
After=network-online.target

[Service]
User=elasticsearch
Group=elasticsearch
Type=simple
RuntimeDirectory=elasticsearch
PrivateTmp=true
Environment=ES_HOME=/usr/share/elasticsearch
Environment=ES_PATH_CONF=/etc/elasticsearch
Environment=PID_DIR=/run/elasticsearch
Environment=ES_SD_NOTIFY=true
EnvironmentFile=-/etc/default/elasticsearch
WorkingDirectory=/var/lib/elasticsearch
PermissionsStartOnly=true
ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-keystore upgrade
ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid
StandardOutput=journal
StandardError=inherit
LimitNOFILE=65535
LimitNPROC=4096
LimitAS=infinity
LimitFSIZE=infinity
TimeoutStopSec=0
KillSignal=SIGTERM
KillMode=process
SendSIGKILL=no
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target