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.
This change attempts to solve #92. Once the shell scripts have bootstrapped the container, they are no longer required. I've added
exec
to both the shell scripts so that thefluentd
process replaces them instead of becoming a child process of them.It seemed reasonable to add
exec
toentrypoint.sh
. It didn't feel as good when adding theexec
to theCMD
. I hope if anyone is overriding theCMD
that they are aware they might be breaking graceful shutdown. What do you think?I repeated my tests with one of the containers I've built from this branch.
Did we get rid of those
sh
processes?We can see that fluentd is a child of PID1 now, so it should be managed by
dumb-init
.What happens when we stop it?
We can see that the fluentd processes exited cleanly.