]> git.puffer.fish Git - mirror/frr.git/commit
tools: improve explanation of 'wrap' options
authorQuentin Young <qlyoung@nvidia.com>
Mon, 6 Dec 2021 04:03:11 +0000 (23:03 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 16 Jun 2022 16:00:23 +0000 (12:00 -0400)
commit5e24868b15b0b296362f500b539c7201cc815036
tree31e73fc8e62940587eab6f47f65cf4605766a0d1
parent668bbbce51d5cc2ba50ef4057fd59d18f8404bcd
tools: improve explanation of 'wrap' options

We support 'wrap' variables in /etc/frr/daemons, but the explanation
given there doesn't touch on some of the subtleties of using these
variables.

The variables were designed for use with Valgrind, which has special
behavior when run with programs that daemonize; Valgrind will intercept
the fork()'d child process and run itself instead of the child. This
behavior allows it to follow the same forking semantics as the target
program.

For virtually every other wrapper, the wrap variables do not work as
demonstrated because the wrapper programs do not daemonize. If the
wrappers do not daemonize, they will block the init script. The examples
given with "perf" for example simply do not work, because perf remains
in the foreground even as it tracks forked children.

This patch adds an explanation of the behavior expected by the init
script and offers a solution for getting that behavior.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
tools/etc/frr/daemons