Skip to content

Commit 6169bc0

Browse files
committed
roachprod: add auto restart option flag
Add a flag to the roachprod CLI to enable auto restarting of cockroach processes. Epic: None Release note: None
1 parent b329224 commit 6169bc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cmd/roachprod/cli/flags.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ func initFlagsStartOpsForCmd(cmd *cobra.Command) {
453453
cmd.Flags().BoolVar(&startOpts.EnableFluentSink,
454454
"enable-fluent-sink", startOpts.EnableFluentSink,
455455
"whether to enable the fluent-servers attribute in the CockroachDB logging configuration")
456+
cmd.Flags().BoolVar(&startOpts.AutoRestart,
457+
"auto-restart", startOpts.AutoRestart, "automatically restart cockroach processes that die")
456458
}
457459

458460
func initFlagInsecureIgnoreHostKeyForCmd(cmd *cobra.Command) {

0 commit comments

Comments
 (0)