summaryrefslogtreecommitdiff
path: root/pkg/systemd/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-07 15:51:41 +0200
committerGitHub <noreply@github.com>2021-09-07 15:51:41 +0200
commit8a55363b80a012b6c6e774957ac477d0fd540a5e (patch)
tree97baa90a5f4364ff6731921649441407625fecd7 /pkg/systemd/define
parentc20227bd16cae98247955b14f6dfea33a26c6a0b (diff)
parentd1573b95e3427efae21da784e3112c5fb3d463fb (diff)
downloadpodman-8a55363b80a012b6c6e774957ac477d0fd540a5e.tar.gz
podman-8a55363b80a012b6c6e774957ac477d0fd540a5e.tar.bz2
podman-8a55363b80a012b6c6e774957ac477d0fd540a5e.zip
Merge pull request #11459 from vrothberg/fix-11438
generate systemd: handle --restart
Diffstat (limited to 'pkg/systemd/define')
-rw-r--r--pkg/systemd/define/const.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkg/systemd/define/const.go b/pkg/systemd/define/const.go
index 1b50be5db..6bab8b629 100644
--- a/pkg/systemd/define/const.go
+++ b/pkg/systemd/define/const.go
@@ -1,8 +1,13 @@
package define
-// EnvVariable "PODMAN_SYSTEMD_UNIT" is set in all generated systemd units and
-// is set to the unit's (unique) name.
-const EnvVariable = "PODMAN_SYSTEMD_UNIT"
+const (
+ // Default restart policy for generated unit files.
+ DefaultRestartPolicy = "on-failure"
+
+ // EnvVariable "PODMAN_SYSTEMD_UNIT" is set in all generated systemd units and
+ // is set to the unit's (unique) name.
+ EnvVariable = "PODMAN_SYSTEMD_UNIT"
+)
// RestartPolicies includes all valid restart policies to be used in a unit
// file.