openstack-ansible-ops/elk_metrics_7x/roles/elasticsearch/templates/systemd.elasticsearch-overrides.conf.j2
Georgina Shippey 5e96844123 Duplicate of elk_metrics_6x to elk_metrics_7x
Change-Id: I92a894e31f725a20c684165f93dd4c34b9c8b450
2019-07-10 17:52:49 +01:00

15 lines
385 B
Django/Jinja

{% include 'templates/systemd.general-overrides.conf.j2' %}
# This first line clears the source ExecStart
ExecStart=
# This runs our ExecStart as an override.
ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid
{% if elastic_memory_lock | bool %}
# Limit memory usage
LimitMEMLOCK=infinity
{% endif %}
# Number of File Descriptors
LimitNOFILE=65536