Package Products :: Package ZenUtils :: Module Watchdog |
[hide private]
[frames] | no frames]

# Module Watchdog

source code

Classes | [hide private]
| TimeoutError
| UnexpectedFailure
| ExitStatus Model a child's exit status
| Watcher Run the given command, and expect periodic input on a shared UNIX-domain socket.
| Reporter

Functions | [hide private]
_sleep(secs) Sleep, but don't raise an exception if interrupted | source code
main() Little test for the Watchdog. | source code

Variables | [hide private]
| __doc__ = `'''watchdog for zenoss daem`...``
| log = `logging.getLogger('watchdog')`
| DEATH_WATCH_TIME = `10`
| BUSY_WAIT_SLEEP = `0.5`

Function Details | [hide private]

### main() | source code
    Little test for the Watchdog.
    Usage:
          python Watchdog.py -- python Watchdog.py -e 1

    This will repeatedly run a child that exits with exit code 1.
    The child does periodic reports over the watchdog socket.

Variables Details | [hide private]

  ### __doc__ Value:
      '''watchdog for zenoss daemons

      Run a program that is expected to run forever.  If the program stops,
      restart it.

      '''