[Bug 277540] dns/knot-resolver: fixing rc scripts krescachegc and kresd
Date: Mon, 01 Jul 2024 13:00:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277540
--- Comment #1 from Leo Vandewoestijne <freebsd@dns.company> ---
Created attachment 251816
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251816&action=edit
knot-resolver rc
I delved in this report numerous time, but never was able to solve everything
at once, as there is a number of problems/conflicts within just a few lines.
- /var/run/kresd is created as kresd, with wrong permissions, which are
overwritten in kresd's rc script at the start routine.
- /var/run/kresd needs to be 700 or else krescachegc will complain it's not
existing or not an LMDB dir.
- daemon (for kresd) needs to be running as root - I guess because above reason
- kresd however is running as kresd (if you tell so in it's config).
- daemon (for krescachegc) can be running as kresd (...?)
'-c <resolver_cache>' is indeed something which became problematic.
status_cmd="${name}_status" indeed was missing, while the routine was in place.
However, -AFAIK- in krescachegc's rc script there is no need to have explicit
start/stop/status routine.
Although it could be added if there is a good reason for it.
As far as I could test this patch would/should solve all the mentioned issues.
All feedback is appreciated.
--
You are receiving this mail because:
You are the assignee for the bug.