-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(service): Change systemd's KillMode
to "mixed"
#13849
fix(service): Change systemd's KillMode
to "mixed"
#13849
Conversation
KillMode
to "mixed"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for the quick fix @knollet!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I was wondering for a while why telegraf wasn't shutting down gracefully anymore. It appears because of the added What is the reason behind this 5s value? |
I am good with a larger value. |
Is the systemd default not good enough? Why was the directive added? |
|
@knollet was there a reason you set the |
I am good with the default, yes. I added it because the documentation referenced it. But having a closer look, it seems not to be necessary to explicitly set it. |
Currently all processes created by Telegraf are killed as-soon-as a the service is stopped. This triggers some errors in Telegraf as its child processes died unexpectedly. By changing the
KillMode
tomixed
Telegraf is given a chance to shut-down its child-processes cleanly while keeping the property of a clean exit if it fails.fixes #13842