summaryrefslogtreecommitdiff
path: root/pkg/systemd/define/const.go
blob: 6bab8b629903bd5cd5b21da8ee6498a5f5577ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package define

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.
var RestartPolicies = []string{"no", "on-success", "on-failure", "on-abnormal", "on-watchdog", "on-abort", "always"}