2 Description=Starts and stops a single elasticsearch instance on this system
3 Documentation=http://www.elasticsearch.org
7 EnvironmentFile=<%= @defaults_location %>/elasticsearch-<%= @name %>
10 PIDFile=<%= @pid_dir %>/elasticsearch-<%= @name %>.pid
11 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d -p <%= @pid_dir %>/elasticsearch-<%= @name %>.pid -Des.default.config=$CONF_FILE -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR -Des.default.path.conf=$CONF_DIR
12 # See MAX_OPEN_FILES in sysconfig
13 LimitNOFILE=<%= @nofile %>
14 # See MAX_LOCKED_MEMORY in sysconfig, use "infinity" when MAX_LOCKED_MEMORY=unlimited and using bootstrap.mlockall: true
15 <% if @memlock == 'unlimited' %>
18 LimitMEMLOCK=<%= @memlock %>
20 # Shutdown delay in seconds, before process is tried to be killed with KILL (if configured)
24 WantedBy=multi-user.target