diff options
author | Brent Baude <bbaude@redhat.com> | 2021-12-16 13:55:08 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2021-12-16 14:11:50 -0600 |
commit | e88c21366d33dccb25ef292610b9894aa5087260 (patch) | |
tree | 0971d140df9f2d14ce0bf30e734f8c93f536193d /libpod/container_internal.go | |
parent | 273da42af237dde44d34d215dfafa33f0b76d9ab (diff) | |
download | podman-e88c21366d33dccb25ef292610b9894aa5087260.tar.gz podman-e88c21366d33dccb25ef292610b9894aa5087260.tar.bz2 podman-e88c21366d33dccb25ef292610b9894aa5087260.zip |
Removed .service file for healthchecks
when a container with healthchecks exits due to stopping or failure, we
need the cleanup process to remove both the timer file and the service
file.
Bz#:2024229
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index a68de3173..7df82eb18 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1877,7 +1877,7 @@ func (c *Container) cleanupStorage() error { return cleanupErr } -// Unmount the a container and free its resources +// Unmount the container and free its resources func (c *Container) cleanup(ctx context.Context) error { var lastError error @@ -1885,7 +1885,7 @@ func (c *Container) cleanup(ctx context.Context) error { // Remove healthcheck unit/timer file if it execs if c.config.HealthCheckConfig != nil { - if err := c.removeTimer(); err != nil { + if err := c.removeTransientFiles(ctx); err != nil { logrus.Errorf("Removing timer for container %s healthcheck: %v", c.ID(), err) } } |