From ebf5292bf998a26473015e6401c677ed8535e26d Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Mon, 29 Mar 2021 16:04:00 -0500 Subject: [PATCH] TUN-4146: Unhide and document grace-period --- cmd/cloudflared/tunnel/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index a3b9aa10..8bb331aa 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -565,10 +565,10 @@ func tunnelFlags(shouldHide bool) []cli.Flag { }), altsrc.NewDurationFlag(&cli.DurationFlag{ Name: "grace-period", - Usage: "Duration to accept new requests after cloudflared receives first SIGINT/SIGTERM. A second SIGINT/SIGTERM will force cloudflared to shutdown immediately.", + Usage: "When cloudflared receives SIGINT/SIGTERM it will stop accepting new requests, wait for in-progress requests to terminate, then shutdown. Waiting for in-progress requests will timeout after this grace period, or when a second SIGTERM/SIGINT is received.", Value: time.Second * 30, EnvVars: []string{"TUNNEL_GRACE_PERIOD"}, - Hidden: true, + Hidden: shouldHide, }), // Note TUN-3758 , we use Int because UInt is not supported with altsrc altsrc.NewIntFlag(&cli.IntFlag{