k3s/pkg
Brad Davidson bfc22ca613 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 13:09:15 -07:00
..
agent Add containerd ready channel to delay etcd node join 2021-10-20 12:35:16 -07:00
apiaddresses Fix condition for adding kubernetes endpoints (#3941) (#3951) 2021-09-01 00:03:36 +02:00
apis/k3s.cattle.io Update generated code 2019-10-30 19:08:26 -07:00
authenticator Introduction of Integration Tests (#3695) 2021-07-26 09:59:33 -07:00
bootstrap Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
cgroups Initial windows support for agent (#3375) 2021-06-01 12:29:46 -07:00
cli Refactor log and reaper exec to omit MAINPID 2021-10-20 13:09:15 -07:00
clientaccess Introduction of Integration Tests (#3695) 2021-07-26 09:59:33 -07:00
cloudprovider Fix race condition in cloud provider 2021-10-19 10:28:02 +02:00
cluster [engine-1.21] Display cluster tls error only in debug mode (#4125) 2021-10-13 01:13:59 +02:00
codegen Add support for disabling all staged content 2020-09-14 14:21:37 -07:00
configfilearg Introduction of Integration Tests (#3695) 2021-07-26 09:59:33 -07:00
containerd Initial windows support for agent (#3375) 2021-06-01 12:29:46 -07:00
ctr Build & enable ctr with k3s server 2019-06-30 09:30:25 -07:00
daemons Add containerd ready channel to delay etcd node join 2021-10-20 12:35:16 -07:00
datadir Make program name a variable to be changed at compile time 2020-06-06 16:39:41 -07:00
dataverify Add file verification for data directory 2020-10-06 10:29:27 -07:00
deploy Use New Image Names (#3749) 2021-08-06 16:14:58 -07:00
etcd Add containerd ready channel to delay etcd node join 2021-10-20 12:35:16 -07:00
flock K3s Flock Integration Test (#3887) 2021-08-20 12:34:22 -07:00
generated Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
kubectl Update Kubernetes to v1.20.0-k3s1 2020-12-08 22:51:34 -08:00
netutil Initial Logging Output Update (#2246) 2020-09-21 09:56:03 -07:00
node Use secrets for node-passwd entries and cleanup 2020-11-05 09:48:53 -07:00
nodeconfig Introduction of Integration Tests (#3695) 2021-07-26 09:59:33 -07:00
nodepassword Introduction of Integration Tests (#3695) 2021-07-26 09:59:33 -07:00
passwd Use secrets for node-passwd entries and cleanup 2020-11-05 09:48:53 -07:00
rootless rootless: allow kernel.dmesg_restrict=1 2021-03-24 01:03:14 -07:00
rootlessports Initial Logging Output Update (#2246) 2020-09-21 09:56:03 -07:00
server Add containerd ready channel to delay etcd node join 2021-10-20 12:35:16 -07:00
servicelb Add system-default-registry support and remove shared code (#3285) 2021-05-10 15:58:41 -07:00
static Add system-default-registry support and remove shared code (#3285) 2021-05-10 15:58:41 -07:00
token Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
untar Limit zstd decoder memory 2021-02-17 11:48:03 -08:00
util Minor cleanup on cribbed function 2021-10-20 12:35:16 -07:00
version remove hard coded value 2020-07-09 11:20:06 -07:00