Skip to content

Commit f76fde0

Browse files
jordansisseldakrone
authored andcommitted
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.
1 parent d150884 commit f76fde0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

distribution/src/main/packaging/systemd/elasticsearch.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Wants=network-online.target
55
After=network-online.target
66

77
[Service]
8+
RuntimeDirectory=elasticsearch
89
Environment=ES_HOME=/usr/share/elasticsearch
910
Environment=ES_PATH_CONF=${path.conf}
1011
Environment=PID_DIR=/var/run/elasticsearch

0 commit comments

Comments
 (0)