From: Tomas Krizek Date: Mon, 1 Jul 2019 10:28:34 +0000 (+0200) Subject: utils/cache_gc: meson - rename to kres-cache-gc X-Git-Tag: v4.1.0^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2af0c3396fa49981fd3fc2c17b045bdb047cc45;p=thirdparty%2Fknot-resolver.git utils/cache_gc: meson - rename to kres-cache-gc --- diff --git a/daemon/README.rst b/daemon/README.rst index 47bb5146f..bd2b5ada7 100644 --- a/daemon/README.rst +++ b/daemon/README.rst @@ -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 diff --git a/distro/deb/knot-resolver.install b/distro/deb/knot-resolver.install index 91179e9b6..5e11209cf 100644 --- a/distro/deb/knot-resolver.install +++ b/distro/deb/knot-resolver.install @@ -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 diff --git a/distro/rpm/knot-resolver.spec b/distro/rpm/knot-resolver.spec index d57820405..428278cbf 100644 --- a/distro/rpm/knot-resolver.spec +++ b/distro/rpm/knot-resolver.spec @@ -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 diff --git a/utils/cache_gc/meson.build b/utils/cache_gc/meson.build index a734f9545..e87232652 100644 --- a/utils/cache_gc/meson.build +++ b/utils/cache_gc/meson.build @@ -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,