> I think a time condition should be added here. I don't want the angel to
> restart more than 10 times within 5 minutes, but I definitly want it to
> restart more than 10 times within hours/days/months.
I agree to that point, though any time there is a successful run the 'attempts' variable is reset to 0. I will look into wrapping the logic around a 'if < 5 minutes since the last time $attempts was reset' check.
> I think a time condition should be added here. I don't want the angel to
> restart more than 10 times within 5 minutes, but I definitly want it to
> restart more than 10 times within hours/days/months.
I agree to that point, though any time there is a successful run the 'attempts' variable is reset to 0. I will look into wrapping the logic around a 'if < 5 minutes since the last time $attempts was reset' check.