[Backgroundrb-devel] Saving server

Zachary Powell zach at plugthegap.co.uk
Tue Jan 8 20:33:14 EST 2008


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)

thanks,

zacha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080108/8d4e62d2/attachment.html 


More information about the Backgroundrb-devel mailing list