Bug 279635

Summary: dns/powerdns: make the rc script service jails aware
Product: Ports & Packages Reporter: Alexander Leidinger <netchild>
Component: Individual Port(s)Assignee: Alexander Leidinger <netchild>
Status: Closed FIXED    
Severity: Affects Some People CC: tremere
Priority: --- Flags: tremere: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
make the rc script service jails aware none

Description Alexander Leidinger freebsd_committer freebsd_triage 2024-06-10 11:03:32 UTC
Created attachment 251349 [details]
make the rc script service jails aware

Hi,

attached is a mechanical patch (untested) which makes the rc.d script service jails ready. This is a new feature in -current.

The setup I've chosen is to allow ipv4/ipv6 access. It does not allow to use sysv IPC in a jail. IF you want to add this possibility, the config would need to be changed to "net_basic sysvipc" instead. The config can be overridden in rc.conf.

See also:
  https://docs.freebsd.org/en/books/handbook/jails/#service-jails
  https://docs.freebsd.org/en/articles/rc-scripting/#rcng-service-jails

Bye,
Alexander.
Comment 1 Ralf van der Enden 2024-06-12 05:17:23 UTC
Looks good to me.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-12 06:34:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fae91b2a5047e6a1720e981a748f762e28060a21

commit fae91b2a5047e6a1720e981a748f762e28060a21
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2024-06-12 06:31:33 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2024-06-12 06:34:12 +0000

    dns/powerdns: make the rc script service jails aware

    PR:             279635
    Approved by:    maintainer

 dns/powerdns/Makefile      | 1 +
 dns/powerdns/files/pdns.in | 1 +
 2 files changed, 2 insertions(+)