diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-07 15:51:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 15:51:41 +0200 |
commit | 8a55363b80a012b6c6e774957ac477d0fd540a5e (patch) | |
tree | 97baa90a5f4364ff6731921649441407625fecd7 /pkg/systemd/define | |
parent | c20227bd16cae98247955b14f6dfea33a26c6a0b (diff) | |
parent | d1573b95e3427efae21da784e3112c5fb3d463fb (diff) | |
download | podman-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.go | 11 |
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. |