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

Reparenting child processes within system-extenstion services #9178

Open
wvh-github opened this issue Aug 14, 2024 · 1 comment
Open

Reparenting child processes within system-extenstion services #9178

wvh-github opened this issue Aug 14, 2024 · 1 comment

Comments

@wvh-github
Copy link

Feature Request

The ability to reparent child processes launched from within containers or talos system-extentions.

Description

We are creating a system extension to take some responsibility in launching child processes. In our case these are virtual machines. We are concerned that when multiple processes are running they all get reaped when one dies.
Would it be possible to keep the children running, and reparent them as soon as the service restarts?

@smira
Copy link
Member

smira commented Aug 14, 2024

This is more of a generic UNIX question, and doesn't have to do anything with Talos Linux.

In general, when the parent dies, children are not reaped, but in the container when the entrypoint dies, the whole container is terminated.

So you would need to have your entrypoint to never die. The children will be re-assigned to the entrypoint process if the parent dies.

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

No branches or pull requests

2 participants