github.com/AbhinandanKurakure/podman/v3@v3.4.10/pkg/systemd/define/const.go (about) 1 package define 2 3 const ( 4 // Default restart policy for generated unit files. 5 DefaultRestartPolicy = "on-failure" 6 7 // EnvVariable "PODMAN_SYSTEMD_UNIT" is set in all generated systemd units and 8 // is set to the unit's (unique) name. 9 EnvVariable = "PODMAN_SYSTEMD_UNIT" 10 ) 11 12 // RestartPolicies includes all valid restart policies to be used in a unit 13 // file. 14 var RestartPolicies = []string{"no", "on-success", "on-failure", "on-abnormal", "on-watchdog", "on-abort", "always"}