Skip to content
Snippets Groups Projects
Verified Commit f2af0c33 authored by Tomas Krizek's avatar Tomas Krizek Committed by Petr Špaček
Browse files

utils/cache_gc: meson - rename to kres-cache-gc

parent 6ae50c80
No related branches found
No related tags found
1 merge request!845Release 4.1.0
......@@ -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
......
......@@ -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
......@@ -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
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment