archrelease: copy trunk to community-any
[ArchLinux/community.git] / elasticsearch / trunk / elasticsearch.service
blobd15fff03901de899ff4506b82277c17713eca4d3
1 [Unit]
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
9 [Service]
10 Type=notify
11 RuntimeDirectory=elasticsearch
12 PrivateTmp=true
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
21 User=elasticsearch
22 Group=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
36 StandardError=inherit
38 # Specifies the maximum file descriptor number that can be opened by this process
39 LimitNOFILE=65535
41 # Specifies the maximum number of processes
42 LimitNPROC=4096
44 # Specifies the maximum size of virtual memory
45 LimitAS=infinity
47 # Specifies the maximum file size
48 LimitFSIZE=infinity
50 # Disable timeout logic and wait until process is stopped
51 TimeoutStopSec=0
53 # SIGTERM signal is used to stop the Java process
54 KillSignal=SIGTERM
56 # Send the signal only to the JVM rather than its control group
57 KillMode=process
59 # Java process is never killed
60 SendSIGKILL=no
62 # When a JVM receives a SIGTERM signal it exits with code 143
63 SuccessExitStatus=143
65 [Install]
66 WantedBy=multi-user.target