diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-06-29 08:58:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 08:58:40 -0400 |
commit | 9e58153a5a0577970ca185b8d65f031703001157 (patch) | |
tree | 4de2782365191c36ef2b518ec32f52127f67ee65 /system | |
parent | c62dcb2a9bd8ca6ec0c483bb3506c733d96648c6 (diff) |
Add configuration file for netdata-updater.sh. (#15149)
* Add config file for netdata-updater script.
Currently only has an option to control maximal delay when adding random
jitter while updating.
Longer-term, this will be used to support a number of other
configuration options without requiring the user to handle special
arguments for the script.
* Better handle jitter config option.
* Fix DEB package builds.
* Properly mark updater config as conffile in RPM spec file.
* Switch to a proper config file in the repo.
* Add documentation about the new config file.
Diffstat (limited to 'system')
-rw-r--r-- | system/Makefile.am | 1 | ||||
-rw-r--r-- | system/netdata-updater.conf | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/system/Makefile.am b/system/Makefile.am index 13466639d5..54e9278c84 100644 --- a/system/Makefile.am +++ b/system/Makefile.am @@ -26,6 +26,7 @@ dist_config_SCRIPTS = \ dist_config_DATA = \ .install-type \ + netdata-updater.conf \ $(NULL) libconfigvnodesdir=$(libconfigdir)/vnodes diff --git a/system/netdata-updater.conf b/system/netdata-updater.conf new file mode 100644 index 0000000000..6cf2062a1a --- /dev/null +++ b/system/netdata-updater.conf @@ -0,0 +1,7 @@ +# Configuration for netdata-updater.sh script. +# +# When run non-interactively, the updater script will delay some +# random number of seconds up to NETDATA_UPDATER_JITTER before +# actually running the update. The default is 3600 (one +# hour). Most users should not need to change this. +#NETDATA_UPDATER_JITTER="3600" |