I would make my own startup script and use using a minoring deamon to
restart. There is one for linux but I do not recall the name.

On Dec 3, 4:26 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> Sounds like you have it worked out to me :)
>
> Use sys.exec to run the process? check /proc for the pid ?
>
> Otherwise you could use CRON, but I am not sure this is what you want?
>
> -Thadeus
>
> On Thu, Dec 3, 2009 at 4:10 PM, Richard <richar...@gmail.com> wrote:
> > any ideas?
>
> > On Dec 2, 6:29 pm, Richard <richar...@gmail.com> wrote:
> > > Hello,
>
> > > I have an ongoing background task for processing my database.
> > > I want this task to automatically start when I run my app somewhere
> > > (can assume it is a Linux box), and to restart if it somehow dies.
>
> > > This is my current thinking, which I would appreciate feedback on:
> > > - Define a task table, which is checked on every request
> > > - If the task table is empty then start the background task with
> > > subprocess and store the pid in the task table
> > > - If the task table has an entry but its pid is not active (not in /
> > > proc) then restart the background task and update the pid
> > > - Else the task is running fine
>
> > > This is a low bandwidth site so efficiency is not important. But the
> > > above strategy seems cumbersome - is there a better way?
>
> > > thanks,
> > > Richard
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/web2py?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to