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:
parent
dcc6b426ec
commit
d6fc4affae
|
@ -92,9 +92,11 @@ specified via systemd.
|
||||||
The systemd service file (`/usr/lib/systemd/system/elasticsearch.service`)
|
The systemd service file (`/usr/lib/systemd/system/elasticsearch.service`)
|
||||||
contains the limits that are applied by default.
|
contains the limits that are applied by default.
|
||||||
|
|
||||||
To override these, add a file called
|
To override them, add a file called
|
||||||
`/etc/systemd/system/elasticsearch.service.d/elasticsearch.conf` and specify
|
`/etc/systemd/system/elasticsearch.service.d/override.conf` (alternatively,
|
||||||
any changes in that file, such as:
|
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]
|
[source,sh]
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
@ -102,6 +104,13 @@ any changes in that file, such as:
|
||||||
LimitMEMLOCK=infinity
|
LimitMEMLOCK=infinity
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
|
Once finished, run the following command to reload units:
|
||||||
|
|
||||||
|
[source,sh]
|
||||||
|
---------------------------------
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
[[jvm-options]]
|
[[jvm-options]]
|
||||||
==== Setting JVM options
|
==== Setting JVM options
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue