
The following change will ensure that the elastic-static is logging to the journal and that systemd is able to report how well the elastic slice is running. Change-Id: I79a9074b5f14a41dec421d6691fd04c0e6be15b7 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
19 lines
614 B
Django/Jinja
19 lines
614 B
Django/Jinja
[Service]
|
|
# This first line clears the source ExecStart
|
|
ExecStart=
|
|
# This runs our ExecStart as an override.
|
|
ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid
|
|
|
|
# This creates a specific slice to operate from. The accounting options give us
|
|
# the ability to see resource usage through the `systemd-cgtop` command and
|
|
# further isolate this service from the host machine.
|
|
Slice=elastic.slice
|
|
CPUAccounting=true
|
|
BlockIOAccounting=true
|
|
MemoryAccounting=true
|
|
TasksAccounting=true
|
|
|
|
# Sandbox setup
|
|
PrivateTmp=true
|
|
PrivateDevices={{ ((ansible_os_family | lower) != "redhat") | lower }}
|