]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/elasticsearch/templates/etc/init.d/elasticsearch.systemd.erb
upgrade to elasticsearch/elasticsearch 0.9.6
[dsa-puppet.git] / 3rdparty / modules / elasticsearch / templates / etc / init.d / elasticsearch.systemd.erb
1 [Unit]
2 Description=Starts and stops a single elasticsearch instance on this system
3 Documentation=http://www.elasticsearch.org
4
5 [Service]
6 Type=forking
7 EnvironmentFile=<%= @defaults_location %>/elasticsearch-<%= @name %>
8 User=<%= @user %>
9 Group=<%= @group %>
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' %>
16 LimitMEMLOCK=infinity
17 <% else %>
18 LimitMEMLOCK=<%= @memlock %>
19 <% end %>
20 # Shutdown delay in seconds, before process is tried to be killed with KILL (if configured)
21 TimeoutStopSec=20
22
23 [Install]
24 WantedBy=multi-user.target