Skip to content

Document how to set ES_TMPDIR in the service file#93121

Merged
DaveCTurner merged 1 commit intoelastic:mainfrom
DaveCTurner:2023-01-20-ES_TMPDIR-unit-file
Jan 23, 2023
Merged

Document how to set ES_TMPDIR in the service file#93121
DaveCTurner merged 1 commit intoelastic:mainfrom
DaveCTurner:2023-01-20-ES_TMPDIR-unit-file

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner commented Jan 20, 2023

Today we suggest that users set ES_TMPDIR using export, which only works if you're running things directly from the shell. Yet most users encountering ES_TMPDIR problems seem to on RHEL and trying to run things via systemd, for whom the export suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the systemd service file to set the appropriate environment variable.

Relates #80651

Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates elastic#80651
@DaveCTurner DaveCTurner added >docs General docs changes :Core/Infra/Core Core issues without another label v8.6.1 v8.7.0 v7.17.9 labels Jan 20, 2023
@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team Team:Docs Meta label for docs team labels Jan 20, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Copy Markdown
Member

@kilfoyle kilfoyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@DaveCTurner DaveCTurner merged commit a4de6bd into elastic:main Jan 23, 2023
@DaveCTurner DaveCTurner deleted the 2023-01-20-ES_TMPDIR-unit-file branch January 23, 2023 08:30
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates elastic#80651
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates elastic#80651
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
8.6
7.17

elasticsearchmachine pushed a commit that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates #80651
elasticsearchmachine pushed a commit that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates #80651
rjernst added a commit that referenced this pull request Jan 24, 2023
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
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Jan 24, 2023
…c#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 elastic#93121
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Jan 24, 2023
…c#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 elastic#93121
elasticsearchmachine pushed a commit that referenced this pull request Jan 24, 2023
#93214)

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
elasticsearchmachine pushed a commit that referenced this pull request Jan 24, 2023
#93215)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label >docs General docs changes Team:Core/Infra Meta label for core/infra team Team:Docs Meta label for docs team v7.17.9 v8.6.1 v8.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants