mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
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:
@ -37,10 +37,15 @@ func (s *APIServer) registerGenerateHandlers(r *mux.Router) error {
|
||||
// default: false
|
||||
// description: Do not generate the header including the Podman version and the timestamp.
|
||||
// - in: query
|
||||
// name: time
|
||||
// name: startTimeout
|
||||
// type: integer
|
||||
// default: 0
|
||||
// description: Start timeout in seconds.
|
||||
// - in: query
|
||||
// name: stopTimeout
|
||||
// type: integer
|
||||
// default: 10
|
||||
// description: Stop timeout override.
|
||||
// description: Stop timeout in seconds.
|
||||
// - in: query
|
||||
// name: restartPolicy
|
||||
// default: on-failure
|
||||
|
Reference in New Issue
Block a user