scipt will have different PID from the command within the script.. so with
supervisor i will just have control over the script, not the script that is
inside the script...

i think that made more sense...


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

> the problem is that if i put my command in a script it will create (lets
> suppose) pid of 2448 i will then loose control of the command itself,
> because when i check it with ps aux , my command will be with a PID of 2450
>
> i dont know if that make sense?
>
>
> On Mon, Sep 30, 2013 at 5:08 PM, Brent Tubbs <[email protected]>wrote:
>
>> 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 <[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?
>>>
>>> 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