forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OPENSEARCH_TMPDIR to systemd service #231
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…kages accordingly
Tested and working as expected: [root@alma8 ~]# ls -l /var/log/wazuh-indexer/ | grep tmp
drwxr-x---. 2 wazuh-indexer wazuh-indexer 6 May 21 11:58 tmp
[root@alma8 ~]# systemctl status wazuh-indexer.service --no-pager
● wazuh-indexer.service - wazuh-indexer
Loaded: loaded (/usr/lib/systemd/system/wazuh-indexer.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2024-05-21 11:58:20 -03; 7min ago
Docs: https://documentation.wazuh.com
Main PID: 10418 (java)
Tasks: 66 (limit: 23148)
Memory: 1.3G
CGroup: /system.slice/wazuh-indexer.service
└─10418 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch …
May 21 11:58:12 alma8 systemd-entrypoint[10418]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-index…h-2.13.0.jar)
May 21 11:58:12 alma8 systemd-entrypoint[10418]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
May 21 11:58:12 alma8 systemd-entrypoint[10418]: WARNING: System::setSecurityManager will be removed in a future release
May 21 11:58:13 alma8 systemd-entrypoint[10418]: May 21, 2024 11:58:13 AM sun.util.locale.provider.LocaleProviderAdapter <clinit>
May 21 11:58:13 alma8 systemd-entrypoint[10418]: WARNING: COMPAT locale provider will be removed in a future release
May 21 11:58:13 alma8 systemd-entrypoint[10418]: WARNING: A terminally deprecated method in java.lang.System has been called
May 21 11:58:13 alma8 systemd-entrypoint[10418]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer…h-2.13.0.jar)
May 21 11:58:13 alma8 systemd-entrypoint[10418]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
May 21 11:58:13 alma8 systemd-entrypoint[10418]: WARNING: System::setSecurityManager will be removed in a future release
May 21 11:58:20 alma8 systemd[1]: Started wazuh-indexer.
Hint: Some lines were ellipsized, use -l to show in full.
[root@alma8 ~]# systemctl cat wazuh-indexer.service --no-pager | grep OPENSEARCH_TMPDIR
Environment=OPENSEARCH_TMPDIR=/var/log/wazuh-indexer/tmp |
AlexRuiz7
approved these changes
May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds
OPENSEARCH_TMPDIR
environment variable to thewazuh-indexer.service
systemd unit and has it pointing to/var/log/wazuh-indexer/tmp
such that/tmp
and/var/tmp
mount options such asnoexec
don't affect the service's initialization.Issues Resolved
Resolves: wazuh/wazuh-packages#1539
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.