On 08/09/2015 23:57, Buck Evan wrote:
> I'm writing a framework in which I need to be able to easily restart
> services with new environment values.
Start your run script with "s6-envdir env", and allow users to
modify variables in env ?
> It seems counter to the core design to have supervise stop so often.
It's also counter to the core design to inherit a service's environment
from the caller. The point is to make runs reproducible, so the
environment is always inherited from the supervision tree. Don't touch
supervisors, just have the run scripts get their environment from
somewhere in the filesystem and make your changes there.
--
Laurent
Received on Tue Sep 08 2015 - 22:09:12 UTC