File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,15 @@ Environment=LOG_DIR={{log_dir}}
12
12
Environment=PID_DIR={{pid_dir}}
13
13
EnvironmentFile=-{{instance_default_file}}
14
14
15
+ WorkingDirectory={{es_home}}
16
+
15
17
User={{es_user}}
16
18
Group={{es_group}}
17
19
20
+ {% if es_version | version_compare ('2.0' , '>=' ) %}
21
+ ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
22
+ {% endif %}
23
+
18
24
ExecStart={{es_home}}/bin/elasticsearch \
19
25
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
20
26
-Des.default.path.home=${ES_HOME} \
@@ -24,11 +30,8 @@ ExecStart={{es_home}}/bin/elasticsearch \
24
30
25
31
26
32
27
- # Connects standard output to /dev/null
28
- StandardOutput=null
29
-
30
- # Connects standard error to journal
31
- StandardError=journal
33
+ StandardOutput=journal
34
+ StandardError=inherit
32
35
33
36
# Specifies the maximum file descriptor number that can be opened by this process
34
37
LimitNOFILE={{es_max_open_files}}
You can’t perform that action at this time.
0 commit comments