Skip to content

Commit

Permalink
Quadlet Doc: Suggest the kill operation for HealthOnFailure
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Rothberg <[email protected]>
Signed-off-by: Ygal Blum <[email protected]>
  • Loading branch information
ygalblum and vrothberg committed Mar 20, 2023
1 parent 5d1342f commit 26d5df7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/markdown/podman-systemd.unit.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Valid options for `[Container]` are listed below:
| Group=1234 | --user UID:1234 |
| HealthCmd="/usr/bin/command" | --health-cmd="/usr/bin/command" |
| HealthInterval=2m | --health-interval=2m |
| HealthOnFailure=restart | --health-on-failure=restart |
| HealthOnFailure=kill | --health-on-failure=kill |
| HealthRetries=5 | --health-retries=5 |
| HealthStartPeriod=1m | --health-start-period=period=1m |
| HealthStartupCmd="/usr/bin/command" | --health-startup-cmd="/usr/bin/command" |
Expand Down Expand Up @@ -221,6 +221,9 @@ Equivalent to the Podman `--health-interval` option.
### `HealthOnFailure=`

Action to take once the container transitions to an unhealthy state.
The "kill" action in combination integrates best with systemd. Once
the container turns unhealthy, it gets killed and systemd will restart
service.
Equivalent to the Podman `--health-on-failure` option.

### `HealthRetries=`
Expand Down

0 comments on commit 26d5df7

Please sign in to comment.