From 2c6d812bd559700b350d0858aa86152abff05195 Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Tue, 17 Jan 2017 11:24:21 +0000 Subject: [PATCH] Systemd updated --- templates/systemd/elasticsearch.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/systemd/elasticsearch.j2 b/templates/systemd/elasticsearch.j2 index 78d79b4..334310e 100644 --- a/templates/systemd/elasticsearch.j2 +++ b/templates/systemd/elasticsearch.j2 @@ -38,7 +38,9 @@ StandardOutput=journal StandardError=inherit # Specifies the maximum file descriptor number that can be opened by this process +{% if es_max_open_files is defined %} LimitNOFILE={{es_max_open_files}} +{% endif %} # Specifies the maximum number of bytes of memory that may be locked into RAM # Set to "infinity" if you use the 'bootstrap.memory_lock: true' option