Updated systemd template with the changes from the one that ships with the .deb/.rpm.
Closes #149
This commit is contained in:
parent
488f53498e
commit
a9f01fed17
1 changed files with 6 additions and 5 deletions
|
|
@ -12,9 +12,13 @@ Environment=LOG_DIR={{log_dir}}
|
||||||
Environment=PID_DIR={{pid_dir}}
|
Environment=PID_DIR={{pid_dir}}
|
||||||
EnvironmentFile=-{{instance_default_file}}
|
EnvironmentFile=-{{instance_default_file}}
|
||||||
|
|
||||||
|
WorkingDirectory={{es_home}}
|
||||||
|
|
||||||
User={{es_user}}
|
User={{es_user}}
|
||||||
Group={{es_group}}
|
Group={{es_group}}
|
||||||
|
|
||||||
|
ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
|
||||||
|
|
||||||
ExecStart={{es_home}}/bin/elasticsearch \
|
ExecStart={{es_home}}/bin/elasticsearch \
|
||||||
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
|
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
|
||||||
-Des.default.path.home=${ES_HOME} \
|
-Des.default.path.home=${ES_HOME} \
|
||||||
|
|
@ -24,11 +28,8 @@ ExecStart={{es_home}}/bin/elasticsearch \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Connects standard output to /dev/null
|
StandardOutput=journal
|
||||||
StandardOutput=null
|
StandardError=inherit
|
||||||
|
|
||||||
# Connects standard error to journal
|
|
||||||
StandardError=journal
|
|
||||||
|
|
||||||
# Specifies the maximum file descriptor number that can be opened by this process
|
# Specifies the maximum file descriptor number that can be opened by this process
|
||||||
LimitNOFILE={{es_max_open_files}}
|
LimitNOFILE={{es_max_open_files}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue