k3s/pkg/cli/cmds
Brad Davidson a18c2efb4c 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>
(cherry picked from commit dc18ef2e51)
2021-10-20 14:36:54 -07:00
..
agent.go Add containerd ready channel to delay etcd node join 2021-10-20 11:06:12 -07:00
check-config.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
config.go Update pkg/cli/cmds/config.go 2020-09-01 10:43:28 -07:00
crictl.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
ctr.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
etcd_snapshot.go [Release-1.21] - Add etcd s3 timeout (#4207) (#4228) 2021-10-18 10:45:38 -07:00
init_default.go Refactor log and reaper exec to omit MAINPID 2021-10-20 14:36:54 -07:00
init_linux.go Refactor log and reaper exec to omit MAINPID 2021-10-20 14:36:54 -07:00
kubectl.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
log.go Refactor log and reaper exec to omit MAINPID 2021-10-20 14:36:54 -07:00
log_default.go Refactor log and reaper exec to omit MAINPID 2021-10-20 14:36:54 -07:00
log_linux.go Refactor log and reaper exec to omit MAINPID 2021-10-20 14:36:54 -07:00
nostage.go Update disables list when building with no_stage 2020-11-04 13:39:45 -08:00
root.go Add the ability to delete an etcd snapshot locally or from S3 (#3277) 2021-05-07 16:10:04 -07:00
server.go [Release-1.21] - Add etcd s3 timeout (#4207) (#4228) 2021-10-18 10:45:38 -07:00
stage.go Update disables list when building with no_stage 2020-11-04 13:39:45 -08:00