[Backgroundrb-devel] Saving server

hemant
Wed, 09 Jan 2008 01:37:41 -0000

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.