generate systemd: add --start-timeout flag

Add a new flag to set the start timeout for a generated systemd unit.
To make naming consistent, add a new --stop-timeout flag as well and let
the previous --time map to it.

Fixes: #11618
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2021-11-22 11:05:59 +01:00
parent 1bfbb28b03
commit 566b78dd02
12 changed files with 106 additions and 25 deletions

View File

@ -38,9 +38,13 @@ Note that `--new` only works on containers and pods created directly via Podman
Do not generate the header including meta data such as the Podman version and the timestamp.
#### **--time**, **-t**=*value*
#### **--start-timeout** =*value*
Override the default stop timeout for the container with the given value.
Override the default start timeout for the container with the given value in seconds.
#### **--stop-timeout** =*value*
Override the default stop timeout for the container with the given value in seconds.
#### **--restart-policy**=*policy*