[Bug 232541] openbgpd rc script kills instances in jails
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Oct 22 18:37:41 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232541
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 at FreeBSD.org
Reporter: gibheer at 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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list