[Bug 277540] dns/knot-resolver: fixing rc scripts krescachegc and kresd

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 15 Jul 2024 14:11:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277540

Leo Vandewoestijne <freebsd@dns.company> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #251816|0                           |1
        is obsolete|                            |
 Attachment #252079|                            |maintainer-approval+
              Flags|                            |

--- Comment #4 from Leo Vandewoestijne <freebsd@dns.company> ---
Created attachment 252079
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252079&action=edit
knot-resolver rc and etc.

> only kres-cache-gc fails
>
Further I see that users kresd (nor daemon) still are unable to create LMDB
structure.
Contrary when cleaning up cache I encounterd files immutable to the 'kresd'
user.
For as far as I see the current commands (after this latest patch) are
successful.

> I do opt for explicit start/stop/status routines
>
Undeniable makes sense, yes.
Anyway, this latest modification is also addressing restarts correctly.
Indeed using some custom routines. And avoiding pid files.

> Only after chown kresd /var/run/kresd/*.mdb kres-cache-gc starts:
>
In my testing I -now- see those files being removed at stop,
and at start recreated correctly as kresd:kresd

> NOTE: user is root!
>
'daemon' processes should be root, while 'kresd' and 'kres-cache-gc' should be
user 'kresd' (or custom choise) now.

So in summary; this patch is be perfect.

-- 
You are receiving this mail because:
You are the assignee for the bug.