kres-cache-gc.service has wrong cache path
Version: 5.0.0
The distributed kres-cache-gc.service file specifies the wrong path for the cache directory, making it pointless.
The default cache path is /var/cache/knot-resolver
and it uses /var/lib/knot-resolver
, resulting in the log being cluttered by Error: /var/lib/knot-resolver does not exist or is not a LMDB
messages.
For the record, this is the installed file:
[Unit]
Description=Knot Resolver Garbage Collector daemon
Documentation=man:kresd.systemd(7)
Documentation=man:kresd(8)
[Service]
Type=simple
ExecStart=/usr/sbin/kres-cache-gc -c /var/lib/knot-resolver -d 1000
User=knot-resolver
Group=knot-resolver
Restart=on-failure
RestartSec=30
StartLimitInterval=400
StartLimitBurst=10
Slice=system-kresd.slice
[Install]
WantedBy=kresd.target
Env: Ubuntu 18.04 with apt source: https://download.opensuse.org/repositories/home:/CZ-NIC:/knot-resolver-latest/xUbuntu_18.04/ /