[Backgroundrb-devel] Saving server

hemant gethemant at gmail.com
Tue Jan 8 20:37:41 EST 2008


On Jan 9, 2008 7:03 AM, Zachary Powell <zach at plugthegap.co.uk> wrote:
> Hi all,
>
> If I modified the server script with
>
> i=0
> begin
>     BackgrounDRb::MasterProxy.new()
> rescue => e
>     #some code to email notice of error
>     i +=1
>     retry if i < 5
> end
>
> would that work / be wise? (vs checking up on the process externally via
> cron, and restarting it if it crashes)
>

I think that will work. But you should have a monit(not cron) script
anyways for checking up status of Master Process.

-- 
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org


More information about the Backgroundrb-devel mailing list