Bug 232541

Summary: net/openbgpd: rc script kills instances in jails
Product: Ports & Packages Reporter: gibheer
Component: Individual Port(s)Assignee: Hiroki Sato <hrs>
Status: Open ---    
Severity: Affects Only Me CC: hrs, swills, w.schwarzenfeld
Priority: --- Keywords: needs-qa
Version: LatestFlags: koobs: merge-quarterly?
Hardware: Any   
OS: Any   
Description Flags
patch-openbgpdrc none

Description gibheer 2018-10-22 18:37:39 UTC
The openbgpd rc script checks for running processes the following function:

        /bin/pgrep -f 'bgpd: parent.*'

When run on the host system with openbgpd instances running in jails, this can lead to killing them too.

To fix the problem, pgrep must be told to only use jail id 0 when searching for processes:

        /bin/pgrep -j none -f 'bgpd: parent.*'

With this, only processes in the jail context are searched and therefore killed.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-10-22 18:53:56 UTC
Created attachment 198478 [details]
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2018-10-23 07:30:53 UTC
Assign to maintainer
Comment 3 gibheer 2018-12-05 19:18:15 UTC

thank you for the help. Is there any chance to get this merged? I just switched to FreeBSD 12.0-RC3, reinstalled all my ports and ran again into the same issue :(.
Is there anything I can help with to move this forward?