From d1c0c42a0812e599298321425fa8e6ccfa2e09e1 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 5 Feb 2018 16:02:18 -0500 Subject: Need to add LISTEN_PID environment variable to conmon command Without this field then conmon will not pass the proper data down to the OCI Runtime. Signed-off-by: Daniel J Walsh --- libpod/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/oci.go b/libpod/oci.go index 4ca0bfbef..278c67829 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -215,7 +215,7 @@ func (r *OCIRuntime) createContainer(ctr *Container, cgroupParent string) (err e cmd.Env = append(cmd.Env, fmt.Sprintf("NOTIFY_SOCKET=%s", notify)) } if listenfds, ok := os.LookupEnv("LISTEN_FDS"); ok { - cmd.Env = append(cmd.Env, fmt.Sprintf("LISTEN_FDS=%s", listenfds)) + cmd.Env = append(cmd.Env, fmt.Sprintf("LISTEN_FDS=%s", listenfds), "LISTEN_PID=1") fds := activation.Files(false) cmd.ExtraFiles = append(cmd.ExtraFiles, fds...) } -- cgit v1.2.3-54-g00ecf