[RADIATOR] restartWrapper patch to help with runaway restarts

David Zych dmrz at illinois.edu
Tue Oct 26 16:19:35 CDT 2010


restartWrapper is wonderful for protecting against the possibility of a 
fluke crash, but if something gets legitimately broken that a restart 
*can't* fix, I don't want to be inundated with email every few seconds. 
  So I have modified restartWrapper to also accept a -min_interval 
parameter which specifies the minimum time that must elapse between two 
successive restarts (defaults to zero if not provided).

So "restartWrapper -delay 1 -min_interval 300 prog" will restart prog 
either 1 second after the previous run stopped OR 5 minutes after the 
previous run started, whichever is later.

The attached patch is against the Radiator 4.7 version of 
restartWrapper.  Hopefully others will find it helpful too.

David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: restartWrapper.patch
Url: http://www.open.com.au/pipermail/radiator/attachments/20101026/1e991cb5/attachment.pl 


More information about the radiator mailing list