Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit ebf5292

Browse files
committed
TUN-4146: Unhide and document grace-period
1 parent f9062ab commit ebf5292

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/cloudflared/tunnel/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,10 @@ func tunnelFlags(shouldHide bool) []cli.Flag {
565565
}),
566566
altsrc.NewDurationFlag(&cli.DurationFlag{
567567
Name: "grace-period",
568-
Usage: "Duration to accept new requests after cloudflared receives first SIGINT/SIGTERM. A second SIGINT/SIGTERM will force cloudflared to shutdown immediately.",
568+
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.",
569569
Value: time.Second * 30,
570570
EnvVars: []string{"TUNNEL_GRACE_PERIOD"},
571-
Hidden: true,
571+
Hidden: shouldHide,
572572
}),
573573
// Note TUN-3758 , we use Int because UInt is not supported with altsrc
574574
altsrc.NewIntFlag(&cli.IntFlag{

0 commit comments

Comments
 (0)