Skip to content

Commit fd4cd50

Browse files
committed
[docs/help] Explain what "watch" mode actually does
1 parent cccd334 commit fd4cd50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func init() {
7272
flag.StringVar(&config.Separator, "separator", "", "the separator to replace '/' with when looking up keys in the backend, prefixed '/' will also be removed (only used with -backend=redis)")
7373
flag.StringVar(&config.Username, "username", "", "the username to authenticate as (only used with vault and etcd backends)")
7474
flag.StringVar(&config.Password, "password", "", "the password to authenticate with (only used with vault and etcd backends)")
75-
flag.BoolVar(&config.Watch, "watch", false, "enable watch support")
75+
flag.BoolVar(&config.Watch, "watch", false, "actively watch the backend for changes (vs. checking every INTERVAL seconds)")
7676
}
7777

7878
// initConfig initializes the confd configuration by first setting defaults,

docs/command-line-flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Usage of confd:
7575
-version
7676
print version and exit
7777
-watch
78-
enable watch support
78+
actively watch the backend for changes (vs. checking every INTERVAL seconds)
7979
```
8080

8181
> The -scheme flag is only used to set the URL scheme for nodes retrieved from DNS SRV records.

docs/configuration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Optional:
2121
* `srv_domain` (string) - The name of the resource record.
2222
* `srv_record` (string) - The SRV record to search for backends nodes.
2323
* `sync-only` (bool) - sync without check_cmd and reload_cmd.
24-
* `watch` (bool) - Enable watch support.
24+
* `watch` (bool) - Actively watch the backend for changes (vs. checking every INTERVAL seconds).
2525
* `auth_token` (string) - Auth bearer token to use.
2626
* `auth_type` (string) - Vault auth backend type to use.
2727
* `basic_auth` (bool) - Use Basic Auth to authenticate (only used with -backend=consul and -backend=etcd).

0 commit comments

Comments
 (0)