Revert "upgrade to elasticsearch/elasticsearch 0.9.6"
[mirror/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=/etc/sysconfig/elasticsearch-<%= @name %>
8 User=<%= @user %>
9 Group=<%= @group %>
10 PIDFile=/var/run/elasticsearch/elasticsearch-<%= @name %>.pid
11 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch/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=65535
14 # See MAX_LOCKED_MEMORY in sysconfig, use "infinity" when MAX_LOCKED_MEMORY=unlimited and using bootstrap.mlockall: true
15 #LimitMEMLOCK=infinity
16 # Shutdown delay in seconds, before process is tried to be killed with KILL (if configured)
17 TimeoutStopSec=20
18
19 [Install]
20 WantedBy=multi-user.target