summaryrefslogtreecommitdiff
path: root/libpod/oci_conmon_linux.go
diff options
context:
space:
mode:
authorchenkang <kongchen28@gmail.com>2021-04-17 21:15:08 +0800
committerchenkang <kongchen28@gmail.com>2021-04-17 21:15:23 +0800
commit728b73d7c4186f4f0f9431d84ec2c5883f38ff20 (patch)
tree917689e3cdfed01dd964fdc7d0077a4dee1ca3a0 /libpod/oci_conmon_linux.go
parentb963a5eb4a62688d3fc5c11815bc626055201187 (diff)
downloadpodman-728b73d7c4186f4f0f9431d84ec2c5883f38ff20.tar.gz
podman-728b73d7c4186f4f0f9431d84ec2c5883f38ff20.tar.bz2
podman-728b73d7c4186f4f0f9431d84ec2c5883f38ff20.zip
set pidfile default value int containerconfig
Signed-off-by: chenkang <kongchen28@gmail.com>
Diffstat (limited to 'libpod/oci_conmon_linux.go')
-rw-r--r--libpod/oci_conmon_linux.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go
index c5735d114..dbe91c232 100644
--- a/libpod/oci_conmon_linux.go
+++ b/libpod/oci_conmon_linux.go
@@ -1025,12 +1025,7 @@ func (r *ConmonOCIRuntime) createOCIContainer(ctr *Container, restoreOptions *Co
}
}
- pidfile := ctr.config.PidFile
- if pidfile == "" {
- pidfile = filepath.Join(ctr.state.RunDir, "pidfile")
- }
-
- args := r.sharedConmonArgs(ctr, ctr.ID(), ctr.bundlePath(), pidfile, ctr.LogPath(), r.exitsDir, ociLog, ctr.LogDriver(), logTag)
+ args := r.sharedConmonArgs(ctr, ctr.ID(), ctr.bundlePath(), ctr.config.PidFile, ctr.LogPath(), r.exitsDir, ociLog, ctr.LogDriver(), logTag)
if ctr.config.Spec.Process.Terminal {
args = append(args, "-t")