summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2019-11-07 11:28:58 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-11-11 15:56:38 +0300
commit11c94f400bc6b9e2e4c878fc9e61754cb6db40c7 (patch)
treef1ec4a8d2db5758d1bf89988a9c25c82943ba901 /meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector
parent3f82f63f2db6d82b9056a8e14877e3802c53d1c2 (diff)
downloadopenbmc-11c94f400bc6b9e2e4c878fc9e61754cb6db40c7.tar.xz
phosphor-dump-monitor- Fix failure for not finding core dump path
phosphot-dump-monitor adds watch on systemd core dump path to detect any new core files created to initiate a dump. On some systems systemd core dump package is not pulled, due to this phosphor-dump monitor service logs error and tries retry for 3 times. Modified to start phosphor-dump-monitor service only when the systed core dump path exists. Tried to add Requires on systedm core dump service but as it is a template version going with path approach. Tested: 1) Removed systemd dump folder and restarted dump-monitor service and ensured that there are no errors logged (From meta-phosphor rev: 7a99220eaae763113372477c3d25039284802ef7) Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com> Change-Id: Ibeb83cde454bf4c6fc6c6827a25705649ceaabe5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector')
-rw-r--r--meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector/obmc-dump-monitor.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector/obmc-dump-monitor.service b/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector/obmc-dump-monitor.service
index aa3837d89..5d1e959d3 100644
--- a/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector/obmc-dump-monitor.service
+++ b/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector/obmc-dump-monitor.service
@@ -1,5 +1,6 @@
[Unit]
Description=Phosphor Dump core monitor.
+ConditionPathExists=/var/lib/systemd/coredump
[Service]
ExecStart=/usr/bin/env phosphor-dump-monitor