On Mon, Sep 30, 2013 at 2:59 PM, Marcos Cano <[email protected]> wrote:

> hello im trying to achieve something like this..
>
> command=java -server -Xmx128M -classpath $DIRECT some.java.Application
>
>
> where the environment variable DIRECT, could be inherit from the
> supervisord config file environment option or by the sub-process itself
> environment option...
>
> but when trying to run it... it can not start because the classpath is not
> set unless i explicitly set it like
>
>
> command=java -server -Xmx128M -classpath /path/that/iwant/
> some.java.Application
>
>
> is there any way i can achieve this? or am i doing something wrong?
>

Rather than going through the trouble of passing an environment value down
from the master supervisor config, what is so unsatisfying about putting
the value in the command argument explicitly?

Inheriting and then trying to go through contortions to get either a shell
or supervisor to expand the variable that you've gone through the trouble
of putting into the main supervisor config sounds troublesome and confusing
to me.


>
> greetings
>
>
>
> _______________________________________________
> 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