Re: monitoring/restarting an application

2009-03-06 Thread Giampaolo Rodola'
On 5 Mar, 15:37, Ghirai wrote: > Hello list, > > I need to keep x number of instances of an external applications > running, say /bin/x, but also kill and restart each one after y seconds. > > What would be the best way to do this (with python 2.5.x)? > > I'm thinking of having a list of running p

Re: monitoring/restarting an application

2009-03-05 Thread Ghirai
On 05 Mar 2009 07:44:44 -0800 Paul Rubin wrote: > Ghirai writes: > > Does this sound reasonable, or is there an easier way? > > Use something like daemontools or upstart. Don't roll your own. > -- Alright, i'll have a look at those as well as supervisor. Thanks.

Re: monitoring/restarting an application

2009-03-05 Thread Paul Rubin
Ghirai writes: > Does this sound reasonable, or is there an easier way? Use something like daemontools or upstart. Don't roll your own. -- http://mail.python.org/mailman/listinfo/python-list

Re: monitoring/restarting an application

2009-03-05 Thread Marco Mariani
Ghirai wrote: I need to keep x number of instances of an external applications running, say /bin/x, but also kill and restart each one after y seconds. What would be the best way to do this (with python 2.5.x)? easy_install supervisor it should do everything for you -- http://mail.python.org

monitoring/restarting an application

2009-03-05 Thread Ghirai
Hello list, I need to keep x number of instances of an external applications running, say /bin/x, but also kill and restart each one after y seconds. What would be the best way to do this (with python 2.5.x)? I'm thinking of having a list of running pids, then have a thread check if len(list) <