Add phosphor-unit-failure-monitor framework

This application is designed to be called from the
OnFailure directive in a systemd unit file.  It will
stop or start another unit when the current unit
fails enough times to exceed its restart policy so
it isn't restarted again.

To do this, this application will check the ActiveState
property of the failing unit.  When it is 'failed', the
target unit will be started (or stopped).

The failing unit name, the target unit name, and if the
target should be stopped or started are all passed in
on the command line.

Change-Id: I93ecccaf1c091abddb769ddad8f43ecd9902210b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
4 files changed
tree: 531cad5631214ac77bb82e8e2a9bc3c795d325cf
  1. fail-monitor/
  2. libmapper/
  3. obmc/
  4. .gitignore
  5. bootstrap.sh
  6. configure.ac
  7. LICENSE
  8. Makefile.am
  9. phosphor-mapper
  10. README.md
  11. setup.py.in
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.