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 <[email protected]> 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 <[email protected]> wrote: > > any ideas? > > > On Dec 2, 6:29 pm, Richard <[email protected]> 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<web2py%[email protected]> > > . > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

