diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-05 14:16:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 14:16:47 -0500 |
commit | 1f59276998320e1961eb9ac63092415f78fe1aa0 (patch) | |
tree | 84385fa229912fbda314ec2435b0ef3b41b536c9 /pkg/systemd/generate/common.go | |
parent | b84b7c89bb35883efebbc1ace0d1bce7e1847632 (diff) | |
parent | 219c69ef03dc86aa92b6134a03f22f416b954d86 (diff) | |
download | podman-1f59276998320e1961eb9ac63092415f78fe1aa0.tar.gz podman-1f59276998320e1961eb9ac63092415f78fe1aa0.tar.bz2 podman-1f59276998320e1961eb9ac63092415f78fe1aa0.zip |
Merge pull request #8889 from vrothberg/run-1138
generate systemd: do not set `KillMode`
Diffstat (limited to 'pkg/systemd/generate/common.go')
-rw-r--r-- | pkg/systemd/generate/common.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/systemd/generate/common.go b/pkg/systemd/generate/common.go index 52a214883..fb921cd72 100644 --- a/pkg/systemd/generate/common.go +++ b/pkg/systemd/generate/common.go @@ -11,6 +11,11 @@ import ( // is set to the unit's (unique) name. const EnvVariable = "PODMAN_SYSTEMD_UNIT" +// minTimeoutStopSec is the minimal stop timeout for generated systemd units. +// Once exceeded, processes of the services are killed and the cgroup(s) are +// cleaned up. +const minTimeoutStopSec = 60 + // RestartPolicies includes all valid restart policies to be used in a unit // file. var RestartPolicies = []string{"no", "on-success", "on-failure", "on-abnormal", "on-watchdog", "on-abort", "always"} |