Clarify systemd overrides

This commit clarifies how to apply an override to the systemd unit file
for Elasticsearch.

Relates #26950
This commit is contained in:
Nicolas Sierra 2017-10-10 19:06:34 +02:00 committed by Jason Tedor
parent dcc6b426ec
commit d6fc4affae
1 changed files with 12 additions and 3 deletions

View File

@ -92,9 +92,11 @@ specified via systemd.
The systemd service file (`/usr/lib/systemd/system/elasticsearch.service`)
contains the limits that are applied by default.
To override these, add a file called
`/etc/systemd/system/elasticsearch.service.d/elasticsearch.conf` and specify
any changes in that file, such as:
To override them, add a file called
`/etc/systemd/system/elasticsearch.service.d/override.conf` (alternatively,
you may run `sudo systemctl edit elasticsearch` which opens the file
automatically inside your default editor). Set any changes in this file,
such as:
[source,sh]
---------------------------------
@ -102,6 +104,13 @@ any changes in that file, such as:
LimitMEMLOCK=infinity
---------------------------------
Once finished, run the following command to reload units:
[source,sh]
---------------------------------
sudo systemctl daemon-reload
---------------------------------
[[jvm-options]]
==== Setting JVM options