Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2018 18:37:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232541] openbgpd rc script kills instances in jails
Message-ID:  <bug-232541-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232541

            Bug ID: 232541
           Summary: openbgpd rc script kills instances in jails
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: gibheer@zero-knowledge.org

The openbgpd rc script checks for running processes the following function:

check_process()
{
        /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:

check_process()
{
        /bin/pgrep -j none -f 'bgpd: parent.*'
}

With this, only processes in the jail context are searched and therefore
killed.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232541-7788>