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:
parent
d150884ded
commit
f76fde04cd
|
@ -5,6 +5,7 @@ Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
RuntimeDirectory=elasticsearch
|
||||||
Environment=ES_HOME=/usr/share/elasticsearch
|
Environment=ES_HOME=/usr/share/elasticsearch
|
||||||
Environment=ES_PATH_CONF=${path.conf}
|
Environment=ES_PATH_CONF=${path.conf}
|
||||||
Environment=PID_DIR=/var/run/elasticsearch
|
Environment=PID_DIR=/var/run/elasticsearch
|
||||||
|
|
Loading…
Reference in New Issue