diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-20 12:09:06 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-20 12:10:14 -0400 |
commit | b74edfb0a1bf5a27a3bba884a0e2275d2f281a65 (patch) | |
tree | a39344bb9b5fda76b21b55c2e5f6b85b65d1cf27 /cmd/podman | |
parent | cc6a85bcde1e7068105502dbc21afbb51b3e70d5 (diff) | |
download | podman-b74edfb0a1bf5a27a3bba884a0e2275d2f281a65.tar.gz podman-b74edfb0a1bf5a27a3bba884a0e2275d2f281a65.tar.bz2 podman-b74edfb0a1bf5a27a3bba884a0e2275d2f281a65.zip |
Add support for retrieving system service --timeout
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/system/service.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/system/service.go b/cmd/podman/system/service.go index a30f43839..d6fe8837b 100644 --- a/cmd/podman/system/service.go +++ b/cmd/podman/system/service.go @@ -52,8 +52,9 @@ func init() { flags := srvCmd.Flags() + cfg := registry.PodmanConfig() timeFlagName := "time" - flags.Int64VarP(&srvArgs.Timeout, timeFlagName, "t", 5, "Time until the service session expires in seconds. Use 0 to disable the timeout") + flags.Int64VarP(&srvArgs.Timeout, timeFlagName, "t", int64(cfg.Engine.ServiceTimeout), "Time until the service session expires in seconds. Use 0 to disable the timeout") _ = srvCmd.RegisterFlagCompletionFunc(timeFlagName, completion.AutocompleteNone) flags.StringVarP(&srvArgs.CorsHeaders, "cors", "", "", "Set CORS Headers") _ = srvCmd.RegisterFlagCompletionFunc("cors", completion.AutocompleteNone) |