talos icon indicating copy to clipboard operation
talos copied to clipboard

Reparenting child processes within system-extenstion services

Open wvh-github opened this issue 1 year ago • 1 comments

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?

wvh-github avatar Aug 14 '24 15:08 wvh-github

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.

smira avatar Aug 14 '24 15:08 smira

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 11 '25 02:02 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Feb 16 '25 02:02 github-actions[bot]