Skip to content

Commit

Permalink
Merge pull request elastic#157 from jakommo/master
Browse files Browse the repository at this point in the history
Updated systemd template with the changes from the one that ships wit…
  • Loading branch information
Dale McDiarmid committed Sep 20, 2016
2 parents e55462b + 34f4c49 commit 913e773
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions templates/systemd/elasticsearch.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ Environment=LOG_DIR={{log_dir}}
Environment=PID_DIR={{pid_dir}}
EnvironmentFile=-{{instance_default_file}}

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 \
-Des.default.path.home=${ES_HOME} \
Expand All @@ -24,11 +30,8 @@ ExecStart={{es_home}}/bin/elasticsearch \



# Connects standard output to /dev/null
StandardOutput=null

# Connects standard error to journal
StandardError=journal
StandardOutput=journal
StandardError=inherit

# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE={{es_max_open_files}}
Expand Down

0 comments on commit 913e773

Please sign in to comment.