Patrick Hemmer
2014-05-15 23:13:49 UTC
I'm running supervisor inside a docker container, and I'd like to have
supervisord kill all other processes and then exit when one of the
processes it's managing goes FATAL, such as "too many start retries too
quickly".
The reason for this is that when supervisord exits, the docker container
will terminate, and the system will then launch a new container to
replace it, hopefully fixing whatever issue was causing that process to die.
I've been digging through the docs, but can't see any way to do this.
But it is a bit of an unusual request, so I'm not too surprised. But is
there any way of accomplishing the desired goal?
Thanks
-Patrick
supervisord kill all other processes and then exit when one of the
processes it's managing goes FATAL, such as "too many start retries too
quickly".
The reason for this is that when supervisord exits, the docker container
will terminate, and the system will then launch a new container to
replace it, hopefully fixing whatever issue was causing that process to die.
I've been digging through the docs, but can't see any way to do this.
But it is a bit of an unusual request, so I'm not too surprised. But is
there any way of accomplishing the desired goal?
Thanks
-Patrick