summaryrefslogtreecommitdiff
path: root/pkg/systemd/generate/common.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-05 14:16:47 -0500
committerGitHub <noreply@github.com>2021-01-05 14:16:47 -0500
commit1f59276998320e1961eb9ac63092415f78fe1aa0 (patch)
tree84385fa229912fbda314ec2435b0ef3b41b536c9 /pkg/systemd/generate/common.go
parentb84b7c89bb35883efebbc1ace0d1bce7e1847632 (diff)
parent219c69ef03dc86aa92b6134a03f22f416b954d86 (diff)
downloadpodman-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.go5
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"}