k3s/pkg/cli
Brad Davidson dc18ef2e51 Refactor log and reaper exec to omit MAINPID
Using MAINPID breaks systemd's exit detection, as it stops watching the
original pid, but is unable to watch the new pid as it is not a child
of systemd itself. The best we can do is just notify when execing the child
process.

We also need to consolidate forking into a sigle place so that we don't
end up with multiple levels of child processes if both redirecting log
output and reaping child processes.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-10-12 13:35:10 -07:00
..
agent Refactor log and reaper exec to omit MAINPID 2021-10-12 13:35:10 -07:00
cmds Refactor log and reaper exec to omit MAINPID 2021-10-12 13:35:10 -07:00
crictl Revert "Add config file support" 2020-08-29 21:44:07 -07:00
ctr Revert "Add config file support" 2020-08-29 21:44:07 -07:00
etcdsnapshot feat: add option to disable s3 over https 2021-09-05 12:03:49 -04:00
kubectl Revert "Add config file support" 2020-08-29 21:44:07 -07:00
server Refactor log and reaper exec to omit MAINPID 2021-10-12 13:35:10 -07:00