summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2020-01-13 16:03:28 +0100
committerTomas Krizek <tomas.krizek@nic.cz>2020-01-15 10:38:20 +0100
commitdb915f1e973c531f3fb7d815ceac063c219d3cdf (patch)
tree81a330a0863def3f6ec1cf4f04716e50cc8bc72a /utils
parentdoc: improve ToC navigation (diff)
downloadknot-resolver-db915f1e973c531f3fb7d815ceac063c219d3cdf.tar.xz
knot-resolver-db915f1e973c531f3fb7d815ceac063c219d3cdf.zip
doc: add section about usage without systemd
- mention process management - describe privileges and capabilities which have to be configured - move garbage collector to this section, as is it enabled by default
Diffstat (limited to 'utils')
-rw-r--r--utils/cache_gc/README.rst13
1 files changed, 9 insertions, 4 deletions
diff --git a/utils/cache_gc/README.rst b/utils/cache_gc/README.rst
index 80729825..71d8bd77 100644
--- a/utils/cache_gc/README.rst
+++ b/utils/cache_gc/README.rst
@@ -1,13 +1,18 @@
+.. _garbage-collector:
+
Garbage Collector
-----------------
-Knot Resolver employs a separate garbage collector daemon which periodically trims the cache to keep its size below size limit configured using :envvar:`cache.size`.
+.. note:: When using systemd, ``kres-cache-gc.service`` is enabled by default
+ and does not need any manual configuration.
-Systemd service ``kres-cache-gc.service`` is enabled by default and does not need any manual intervention.
+Knot Resolver employs a separate garbage collector daemon which periodically
+trims the cache to keep its size below size limit configured using
+:envvar:`cache.size`.
-If you decide to experiment with garbage collector configuration you can execute the daemon manually and configure it to run every second:
+To execute the daemon manually, you can use the following command to run it
+every second:
.. code-block:: bash
$ kres-cache-gc -c /var/cache/knot-resolver -d 1000
-