Re: register runsvdir as subreaper

From: Olivier Brunel <jjk_at_jjacky.com>
Date: Thu, 2 Feb 2017 19:17:30 +0100

On Thu, 02 Feb 2017 16:50:03 +0000
"Laurent Bercot" <ska-supervision_at_skarnet.org> wrote:

> If your question was about the mechanism of wrapping runsv:
>
> mv /bin/runsv /bin/runsv.real
> cat > /bin/runsv <<EOF
> #!/bin/sh
> exec local-reaper /bin/runsv.real "$_at_"
> EOF
> chmod 755 /bin/runsv

Or put your script as /usr/local/bin/runsv (assuming /usr/local/bin is
in your PATH ofc) so the original runsv is left untouched, which is
nice (I feel), and certainly better when using a package manager.

 
> Of course, the best solution is still to do nothing and forget that
> subreapers are even a thing. (And also to switch to s6. :P)
>
> --
> Laurent
>
Received on Thu Feb 02 2017 - 18:17:30 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC