omniti-labs/reconnoiter — pull request #59 by TheTeaWeevil (2012-04-17 15:58:59+00:00)
Title: Shut down Noit if there are too many restarts in a time span

I added support to shut down noit if it restarts too many times in a specified period of time.

This is configurable in the "watchdog" element in the main config file - adding "retries" (for the number of time to allow restarting) and "span" (for the number of seconds to look back at to determine if noit has restarted too many times) will allow this to be configured. If nothing is specified here, the system will default to 5 retries and a span of 60 seconds.

The system will track when it restarts. When it reaches the retry count within the specified span, noit will exit.