summaryrefslogtreecommitdiff
path: root/libpod/container_exec.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-06-15 10:46:12 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2022-06-15 15:43:12 +0200
commit751ba07a76a15ba2965886597c85152c541f3517 (patch)
tree9f2a0ccc296baf7c4222c8d182134e2be033485e /libpod/container_exec.go
parent576c739e5ff01c760b383a258c62ed3ca7e1c30c (diff)
downloadpodman-751ba07a76a15ba2965886597c85152c541f3517.tar.gz
podman-751ba07a76a15ba2965886597c85152c541f3517.tar.bz2
podman-751ba07a76a15ba2965886597c85152c541f3517.zip
libpod: improve check to create conmon cgroup
commit 1951ff168a63157fa2f4711fde283edfc4981ed3 introduced a check so that conmon is not moved to a new cgroup when podman is running inside of a systemd service. This is helpful to integrate podman in systemd so that the spawned conmon lives in the same cgroup as the service that created it. Unfortunately this breaks when podman daemon is running in a systemd service since the same check is in place thus all the conmon processes end up in the same cgroup as the podman daemon. When the podman daemon systemd service stops the conmon processes are also terminated as well as the containers they monitor. Improve the check to exclude podman running as a daemon. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2052697 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/container_exec.go')
0 files changed, 0 insertions, 0 deletions