On Fri, Jun 9, 2017 at 2:37 PM, Carlos Konstanski <
[email protected]> wrote:

> I have a python process that I launch via a wrapper script. The wrapper
> is responsible for ensuring that the virtualenv exists, that all the
> packages in requirements.txt are installed, that the virtualenv is
> activated, and finally it launches the python program.
>
> When I run it under supervisord, the wrapper script is the process that
> is being managed. The actual python program is a child-of-a-child and
> supervisord knows nothing about it.
>
> I performed the following experiment: I killed the wrapper script. The
> result was that the child python process kept running but was now a
> child of init (a top-level process). supervisord relaunched the wrapper
> script. Now I had two python processes running.
>
> How can I get supervisord to have knowledge of both the wrapper script
> and its children? Alternatively, I wonder if there's a way to make my
> python program die if the wrapper script dies. That would be just as
> good.
>
>
it doesn't sound like the wrapper script needs to do anything after it's
startup and after the sub-proc runs. if that's the case, just exec into the
final script. the parent/child relationship between supervisor and your
desired child proc will be maintained.

Thanks,
> Carlos Konstanski
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> https://lists.supervisord.org/mailman/listinfo/supervisor-users
>
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to