2 Description=Elasticsearch
3 Documentation=http://www.elastic.co
4 Wants=elasticsearch-keystore.service
5 Wants=network-online.target
6 After=elasticsearch-keystore.service
7 After=network-online.target
11 RuntimeDirectory=elasticsearch
13 Environment=ES_HOME=/usr/share/elasticsearch
14 Environment=ES_PATH_CONF=/etc/elasticsearch
15 Environment=PID_DIR=/run/elasticsearch
16 Environment=ES_SD_NOTIFY=true
17 EnvironmentFile=-/etc/default/elasticsearch
19 WorkingDirectory=/usr/share/elasticsearch
24 PermissionsStartOnly=true
25 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-keystore upgrade
27 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid
29 # StandardOutput is configured to redirect to journalctl since
30 # some error messages may be logged in standard output before
31 # elasticsearch logging system is initialized. Elasticsearch
32 # stores its logs in /var/log/elasticsearch and does not use
33 # journalctl by default. If you also want to enable journalctl
34 # logging, you can simply remove the "quiet" option from ExecStart.
35 StandardOutput=journal
38 # Specifies the maximum file descriptor number that can be opened by this process
41 # Specifies the maximum number of processes
44 # Specifies the maximum size of virtual memory
47 # Specifies the maximum file size
50 # Disable timeout logic and wait until process is stopped
53 # SIGTERM signal is used to stop the Java process
56 # Send the signal only to the JVM rather than its control group
59 # Java process is never killed
62 # When a JVM receives a SIGTERM signal it exits with code 143
66 WantedBy=multi-user.target