podman/libpod/define
Joseph Gooch 0b1c1ef461 Implement --sdnotify cmdline option to control sd-notify behavior
--sdnotify container|conmon|ignore
With "conmon", we send the MAINPID, and clear the NOTIFY_SOCKET so the OCI
runtime doesn't pass it into the container. We also advertise "ready" when the
OCI runtime finishes to advertise the service as ready.

With "container", we send the MAINPID, and leave the NOTIFY_SOCKET so the OCI
runtime passes it into the container for initialization, and let the container advertise further metadata.
This is the default, which is closest to the behavior podman has done in the past.

The "ignore" option removes NOTIFY_SOCKET from the environment, so neither podman nor
any child processes will talk to systemd.

This removes the need for hardcoded CID and PID files in the command line, and
the PIDFile directive, as the pid is advertised directly through sd-notify.

Signed-off-by: Joseph Gooch <mrwizard@dok.org>
2020-07-06 17:47:18 +00:00
..
annotations.go add {generate,play} kube 2020-05-06 17:08:22 +02:00
config.go Implement --sdnotify cmdline option to control sd-notify behavior 2020-07-06 17:47:18 +00:00
container_inspect.go Merge pull request #6836 from ashley-cui/tzlibpod 2020-07-06 13:28:20 -04:00
containerstate.go v2 podman stats 2020-05-05 08:46:51 -05:00
ctr_inspect.go Add basic structure of output for APIv2 pod inspect 2020-04-15 17:21:00 -04:00
errors.go move go module to v2 2020-07-06 15:50:12 +02:00
exec_codes.go Revert "Exec: use ErrorConmonRead" 2020-03-09 09:50:40 -04:00
healthchecks.go Fix remote integration for healthchecks 2020-05-20 14:43:01 -05:00
info.go Turn on More linters 2020-06-15 07:05:56 -04:00
pod_inspect.go pod config: add a CreateCommand field 2020-06-11 11:01:13 +02:00
podstate.go APIv2 review corrections #3 2020-01-25 15:09:09 -06:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
version.go move go module to v2 2020-07-06 15:50:12 +02:00