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`)
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue