On Wed, Nov 27, 2013 at 4:37 PM, Chris McDonough <chr...@plope.com> wrote:

> On 11/27/2013 11:31 AM, Prathamesh wrote:
>
>> Hi Guys,
>>
>> I am developing python web application using pyramid.
>> everytime i run pyramid application i need to run
>> pserve development.ini --reload command everytime.
>> Even after server crash i need to again run this command in terminal.
>> i want to deploy my application on raspberry pi running raspbian.
>> And keep application running. Even it crashed i need something which
>> will monitor and restart the application
>> I asked in #pyramid irc channel. and they said try supervisor.
>> what i wanted to know is, do i need to write script and monitor it or i
>> can monitor above command?
>> basically how can i use supervisor to keep my pyramid application keep
>> running?
>>
>
> Here's a program section of a supervisord.conf file that I use to run a
> Pyramid app.  It lives in the "etc" directory of a build I use, and
> executes pserve from ../bin:
>
> [program:agendaless]
> command = %(here)s/../bin/pserve %(here)s/development.ini
> redirect_stderr = true
> stdout_logfile = %(here)s/../var/agendaless.log
> startsecs = 5
>

Thanks Chris. I will try and will let you know.

regards,
Prathamesh.
_______________________________________________
Supervisor-users mailing list
Supervisor-users@lists.supervisord.org
https://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to