From 11c94f400bc6b9e2e4c878fc9e61754cb6db40c7 Mon Sep 17 00:00:00 2001 From: Marri Devender Rao Date: Thu, 7 Nov 2019 02:28:58 -0600 Subject: 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 Change-Id: Ibeb83cde454bf4c6fc6c6827a25705649ceaabe5 Signed-off-by: Brad Bishop --- .../dump/phosphor-debug-collector/obmc-dump-monitor.service | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3