Skip to content

Commit

Permalink
Set RuntimeDirectory (#23526)
Browse files Browse the repository at this point in the history
This instruction tells systemd to create a directory /var/run/elasticsearch before starting Elasticsearch.

Without this change, the default PID_DIR (/var/run/elasticsearch) may not exist, and without it, Elasticsearch will fail to start.
  • Loading branch information
jordansissel authored and dakrone committed Aug 15, 2017
1 parent d150884 commit f76fde0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Wants=network-online.target
After=network-online.target

[Service]
RuntimeDirectory=elasticsearch
Environment=ES_HOME=/usr/share/elasticsearch
Environment=ES_PATH_CONF=${path.conf}
Environment=PID_DIR=/var/run/elasticsearch
Expand Down

0 comments on commit f76fde0

Please sign in to comment.