Skip to content
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

Allow service restarts when using memlogd #3920

Merged

Conversation

stijnopheide
Copy link
Contributor

@stijnopheide stijnopheide commented Apr 18, 2023

  • What I did

Fix #3918

  • How I did it

Updated the init pkg to remove the file at the fifo log location if it exists. This replicates the behavior of os.Create for local log files which truncates the file if it exists.

  • How to verify it

Update the init container to the version of this PR and use it in logging.yml as specified in the issue #3918

  • Description for the changelog

Allow service restarts when using memlogd

Signed-off-by: Stijn Opheide <stijn@opheide.be>
@stijnopheide stijnopheide force-pushed the fix/service-restarts-with-memlogd branch from 7f2d890 to 247d919 Compare April 18, 2023 12:28
Copy link
Contributor

@djs55 djs55 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@stijnopheide
Copy link
Contributor Author

@djs55 @deitch do you think it's possible to merge this PR?

@deitch deitch merged commit b26c169 into linuxkit:master Nov 14, 2023
22 checks passed
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.

service restart doesn't connect to memlogd system
3 participants