Skip to content

Commit d6fc4af

Browse files
Nicolas Sierrajasontedor
Nicolas Sierra
authored andcommitted
Clarify systemd overrides
This commit clarifies how to apply an override to the systemd unit file for Elasticsearch. Relates #26950
1 parent dcc6b42 commit d6fc4af

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/reference/setup/sysconfig/configuring.asciidoc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,25 @@ specified via systemd.
9292
The systemd service file (`/usr/lib/systemd/system/elasticsearch.service`)
9393
contains the limits that are applied by default.
9494

95-
To override these, add a file called
96-
`/etc/systemd/system/elasticsearch.service.d/elasticsearch.conf` and specify
97-
any changes in that file, such as:
95+
To override them, add a file called
96+
`/etc/systemd/system/elasticsearch.service.d/override.conf` (alternatively,
97+
you may run `sudo systemctl edit elasticsearch` which opens the file
98+
automatically inside your default editor). Set any changes in this file,
99+
such as:
98100

99101
[source,sh]
100102
---------------------------------
101103
[Service]
102104
LimitMEMLOCK=infinity
103105
---------------------------------
104106

107+
Once finished, run the following command to reload units:
108+
109+
[source,sh]
110+
---------------------------------
111+
sudo systemctl daemon-reload
112+
---------------------------------
113+
105114
[[jvm-options]]
106115
==== Setting JVM options
107116

0 commit comments

Comments
 (0)