Skip to content

Cleanup Socket and Pidfile on exit#768

Merged
dcbw merged 1 commit intocontainernetworking:mainfrom
EmilyShepherd:cleanup-socket-on-exit
Sep 12, 2022
Merged

Cleanup Socket and Pidfile on exit#768
dcbw merged 1 commit intocontainernetworking:mainfrom
EmilyShepherd:cleanup-socket-on-exit

Conversation

@EmilyShepherd
Copy link
Copy Markdown
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]>
@mccv1r0
Copy link
Copy Markdown
Member

mccv1r0 commented Sep 6, 2022

/lgtm

@MikeZappa87
Copy link
Copy Markdown
Contributor

/lgtm

@dcbw
Copy link
Copy Markdown
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