Updated systemd template with the changes from the one that ships with the .deb/.rpm.

Closes #149
This commit is contained in:
Jakob Reiter 2016-09-19 17:45:12 +02:00
parent 488f53498e
commit a9f01fed17

View file

@ -12,9 +12,13 @@ Environment=LOG_DIR={{log_dir}}
Environment=PID_DIR={{pid_dir}}
EnvironmentFile=-{{instance_default_file}}
WorkingDirectory={{es_home}}
User={{es_user}}
Group={{es_group}}
ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
ExecStart={{es_home}}/bin/elasticsearch \
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
-Des.default.path.home=${ES_HOME} \
@ -24,11 +28,8 @@ ExecStart={{es_home}}/bin/elasticsearch \
# Connects standard output to /dev/null
StandardOutput=null
# Connects standard error to journal
StandardError=journal
StandardOutput=journal
StandardError=inherit
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE={{es_max_open_files}}