Skip to content

Adds tini to images #63

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

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft

Conversation

rfrey-splunk
Copy link
Collaborator

Adds tini to images as an init for proper signal forwarding/handling so that Splunk is stopped gracefully during service restarts. The tini version can be set via the tini_version ansible variable and defaults to a value of v0.19.0

guohuang
guohuang previously approved these changes Jan 11, 2024
kdurril-splunk
kdurril-splunk previously approved these changes Jan 11, 2024
Copy link
Collaborator

@kdurril-splunk kdurril-splunk left a comment

Choose a reason for hiding this comment

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

follows https://github.com/krallin/tini recommendations

@mabed-splunk
Copy link
Collaborator

mabed-splunk commented Sep 25, 2024

Hi All,
Deployed the new image on to DEV-Swarm and verified splunk graceful shutdown worked successfully with removing the stale PID files. PFB the screenshots.

Time taken to update the service is ~2-3 minutes and service was in a healthy/replicated 1/1 state.

{% endif %}
{{ splunk_home }}/bin/splunk start --nodaemon --accept-license --answer-yes --no-prompt

set -e
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you explain why you added set -e?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants