1
0
Эх сурвалжийг харах

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.
Jordan Sissel 8 жил өмнө
parent
commit
f76fde04cd

+ 1 - 0
distribution/src/main/packaging/systemd/elasticsearch.service

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