Set RuntimeDirectory (#23526)

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.
This commit is contained in:
Jordan Sissel 2017-08-15 13:20:31 -07:00 committed by Lee Hinman
parent d150884ded
commit f76fde04cd
1 changed files with 1 additions and 0 deletions

View File

@ -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