On 20/05/2019 15.50, Christoph wrote:>> To run the GC as a daemon that
checks the cache in
/var/cache/knot-resolver every minute, use:
kr_cache_gc -c /var/cache/knot-resolver -d 60000
Your package does not appear to include a systemd service file for this
daemon.
I plan to add a systemd unit file before releasing the GC officially.
It's not yet clear whether GC will have a separate service file or
whether it'll be part of some periodic maintenance service which might
do other thing in the future.
Will this do fine?
--
[Unit]
Description=Knot Resolver Garbage Collector daemon
[Service]
Type=notify
WorkingDirectory=/var/cache/knot-resolver
ExecStart=/usr/sbin/kr_cache_gc -c /var/cache/knot-resolver -d 60000
User=knot-resolver
Restart=on-abnormal
[Install]
WantedBy=kresd.target
--
Type=simple should work better, otherwise it looks fine
--
Tomas Krizek
PGP: 4A8B A48C 2AED 933B D495 C509 A1FB A5F7 EF8C 4869