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

Cleanup Socket and Pidfile on exit #768

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

EmilyShepherd
Copy link
Contributor

These were previously left intact, even when exiting gracefully. As the
daemon also fails if the socket already exists, it became the caller's
responsibilityto check for and cleanup old socket files when performing
graceful / deliberate restarts.

This fixes #760

These were previously left intact, even when exiting gracefully. As the
daemon also fails if the socket already exists, it became the caller's
responsibilityto check for and cleanup old socket files when performing
graceful / deliberate restarts.

Signed-off-by: Emily Shepherd <[email protected]>
EmilyShepherd added a commit to EmilyShepherd/kiOS that referenced this pull request Sep 6, 2022
Currently the script has to clean this up manually in case the container
has retarted. As this has been submitted as a [patch upstream][upstream]
it makes more sense to include that patch here too so we can phase out
this manual extra step in the entrypoint.

[upstream]: containernetworking/plugins#768
@mccv1r0
Copy link
Member

mccv1r0 commented Sep 6, 2022

/lgtm

@MikeZappa87
Copy link
Contributor

/lgtm

@dcbw
Copy link
Member

dcbw commented Sep 12, 2022

LGTM too. Thanks!

@dcbw dcbw merged commit 54f69e0 into containernetworking:main Sep 12, 2022
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.

Delete /run/cni/dhcp.sock when dhcp daemon is stopped
4 participants