Browse Source

Clarify systemd overrides

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

Relates #26950
Nicolas Sierra 8 years ago
parent
commit
d6fc4affae
1 changed files with 12 additions and 3 deletions
  1. 12 3
      docs/reference/setup/sysconfig/configuring.asciidoc

+ 12 - 3
docs/reference/setup/sysconfig/configuring.asciidoc

@@ -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