summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-06-02 12:15:59 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-06-02 13:29:43 -0500
commit62b36bd882b12c7eea4e24e2438da05a719c8d97 (patch)
tree531cad5631214ac77bb82e8e2a9bc3c795d325cf /Makefile.am
parenta33fbf51b5133d9e984aa9863b75896ee220ef1a (diff)
downloadphosphor-objmgr-62b36bd882b12c7eea4e24e2438da05a719c8d97.tar.gz
phosphor-objmgr-62b36bd882b12c7eea4e24e2438da05a719c8d97.zip
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>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 7f99e00..d373416 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,3 +34,5 @@ uninstall-hook:
| $(AWK) '{print "$(DESTDIR)"$$1}' | xargs rm -fv
endif
+
+SUBDIRS = fail-monitor
OpenPOWER on IntegriCloud