From 75cdc569f98fc77801488ecee6524f6f0ff1d55f Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 24 Jan 2023 13:56:14 -0800 Subject: [PATCH] Suggest systemd override file instead of unit file for tmpdir (#93211) The systemd unit file is part of the Elasticsearch package and should not be edited. Instead, we recommend creating a service override file. This commit tweaks the docs for setting tmp dir with systemd to use the override file instead of editing the unit file. relates #93121 --- .../reference/setup/sysconfig/executable-jna-tmpdir.asciidoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/reference/setup/sysconfig/executable-jna-tmpdir.asciidoc b/docs/reference/setup/sysconfig/executable-jna-tmpdir.asciidoc index 328bb77e8fcfc..0305a917da082 100644 --- a/docs/reference/setup/sysconfig/executable-jna-tmpdir.asciidoc +++ b/docs/reference/setup/sysconfig/executable-jna-tmpdir.asciidoc @@ -34,9 +34,8 @@ instance: export ES_TMPDIR=/usr/share/elasticsearch/tmp -------------------------------------------- -* If you are using `systemd` to run {es} as a service, using the `systemctl` -command, add the following line to the `[Service]` section of your -`elasticsearch.service` unit file: +* If you are using `systemd` to run {es} as a service, add the following +line to the `[Service]` section in a <>: + [source,text] --------------------------------------------