]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
utils/cache_gc: meson - rename to kres-cache-gc
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 1 Jul 2019 10:28:34 +0000 (12:28 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 10 Jul 2019 13:59:23 +0000 (15:59 +0200)
daemon/README.rst
distro/deb/knot-resolver.install
distro/rpm/knot-resolver.spec
utils/cache_gc/meson.build

index 47bb5146f86257b27c6b5304e31878d0b79caa27..bd2b5ada7bcc22afa77b02d6dbc9f1209d1fdccb 100644 (file)
@@ -624,13 +624,13 @@ required, the entire cache is dropped. To avoid starting over with an empty
 cache, a separate garbage collector daemon is available to periodically trim
 the cache instead.
 
-The cache garbage collector daemon (``kres_cache_gc``) monitors the cache usage
+The cache garbage collector daemon (``kres-cache-gc``) monitors the cache usage
 and attempts to free up space when a threshold is reached. To spawn the daemon
-and configure it to run every minute, use:
+and configure it to run every second, use:
 
 .. code-block:: bash
 
-   $ kres_cache_gc -c /var/cache/knot-resolver -d 10000
+   $ kres-cache-gc -c /var/cache/knot-resolver -d 1000
 
 It's also possible to run this under systemd. However, a dedicated systemd unit
 is not currently part of the upstream package. See `message#167`_ on our
index 91179e9b6d9f21f9bebad7170ebc091939b24d08..5e11209cf0adee914bf771317fd387378b00cb47 100644 (file)
@@ -30,4 +30,4 @@ usr/lib/knot-resolver/kres_modules/view.lua
 usr/lib/knot-resolver/kres_modules/workarounds.lua
 usr/sbin/kresc
 usr/sbin/kresd
-usr/sbin/kres_cache_gc
+usr/sbin/kres-cache-gc
index d57820405646563eebb34abfe90400151e3a2e3d..428278cbfe836d467a54483e996f8835d06bc414 100644 (file)
@@ -254,7 +254,7 @@ systemctl daemon-reload
 %attr(750,knot-resolver,knot-resolver) %dir %{_localstatedir}/cache/%{name}
 %{_sbindir}/kresd
 %{_sbindir}/kresc
-%{_sbindir}/kres_cache_gc
+%{_sbindir}/kres-cache-gc
 %{_libdir}/libkres.so.*
 %dir %{_libdir}/knot-resolver
 %{_libdir}/knot-resolver/*.so
index a734f9545ba6ac76fbec2986d622e0ad15b4755c..e872326529c08e50b6c733cb4368bb87b9c568e4 100644 (file)
@@ -10,7 +10,7 @@ c_src_lint += cache_gc_src
 
 if build_utils
   cache_gc = executable(
-    'kres_cache_gc',
+    'kres-cache-gc',
     cache_gc_src,
     dependencies: [
       contrib_dep,