On 6 February 2015 at 21:59, Jonathan Stewmon <jstew...@rmn.com> wrote:

> If you go the pid file route, your server process will need to create the
> pid file when it starts and remove it when it exits.
>

Even simpler: you can easily obtain the PID by calling: supervisorctl pid
programname


> On Fri, Feb 6, 2015 at 3:58 PM, Mikko Ohtamaa <mi...@redinnovation.com>
> wrote:
>
>>
>> As Andres suggested, you could guard the curl call in the check script
>>> with a condition for a pidfile existing.
>>>
>>
>> Thanks!
>>
>> Does supervisor provide functionality for pid file generation or do I
>> just do it inside my app?
>>
>> Cheers,
>> Mikko
>>
>>
>> _______________________________________________
>> Supervisor-users mailing list
>> Supervisor-users@lists.supervisord.org
>> https://lists.supervisord.org/mailman/listinfo/supervisor-users
>>
>>
>
>
> This e-mail, including attachments, contains confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. The reader is hereby notified that any
> dissemination, distribution or copying of this e-mail is prohibited. If you
> have received this e-mail in error, please notify the sender by replying to
> this message and delete this e-mail immediately.
>
> _______________________________________________
> Supervisor-users mailing list
> Supervisor-users@lists.supervisord.org
> https://lists.supervisord.org/mailman/listinfo/supervisor-users
>
>


-- 
Gustavo J. A. M. Carneiro
Gambit Research
"The universe is always one step beyond logic." -- Frank Herbert
_______________________________________________
Supervisor-users mailing list
Supervisor-users@lists.supervisord.org
https://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to