Added conditional for ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec, as its only available on ES >=2.0
This commit is contained in:
parent
a9f01fed17
commit
34f4c49e00
1 changed files with 2 additions and 0 deletions
|
|
@ -17,7 +17,9 @@ WorkingDirectory={{es_home}}
|
|||
User={{es_user}}
|
||||
Group={{es_group}}
|
||||
|
||||
{% if es_version | version_compare('2.0', '>=') %}
|
||||
ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
|
||||
{% endif %}
|
||||
|
||||
ExecStart={{es_home}}/bin/elasticsearch \
|
||||
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue