IIRC, 'command' isn't executed in a shell context, and can't itself use environment variables passed in by Supervisor. You could put your command in a Bash script though, have Supervisor call that, and there you should be able to use $DIRECT.
On Mon, Sep 30, 2013 at 2:59 PM, Marcos Cano <mc...@stsa.info> 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? > > greetings > > > > _______________________________________________ > Supervisor-users mailing list > Supervisor-users@lists.supervisord.org > https://lists.supervisord.org/mailman/listinfo/supervisor-users > >
_______________________________________________ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users