From 0d6cdfb7f08058312b3d7dc5686a42afdfb1ffba Mon Sep 17 00:00:00 2001 From: Steve Fung Date: Wed, 14 Oct 2015 16:23:03 -0700 Subject: [PATCH] Update crash_reporter and metrics rc files to trigger on post-fs-data The /data directory isn't guaranteed to be mounted during the "on boot" trigger, so switch them to using "on post-fs-data". Bug: 24941965 Change-Id: Iee84ca0e934967cff7bc4d968d9939d398c73980 --- crash_reporter/crash_reporter.rc | 2 +- metricsd/metrics_daemon.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crash_reporter/crash_reporter.rc b/crash_reporter/crash_reporter.rc index 7bfe0c2f8..57c1d40ad 100644 --- a/crash_reporter/crash_reporter.rc +++ b/crash_reporter/crash_reporter.rc @@ -5,7 +5,7 @@ on property:crash_reporter.coredump.enabled=1 on property:crash_reporter.coredump.enabled=0 write /proc/sys/kernel/core_pattern "core" -on boot +on post-fs-data # Allow catching multiple unrelated concurrent crashes, but use a finite # number to prevent infinitely recursing on crash handling. write /proc/sys/kernel/core_pipe_limit 4 diff --git a/metricsd/metrics_daemon.rc b/metricsd/metrics_daemon.rc index 0e1fcd5d3..0ee577e4f 100644 --- a/metricsd/metrics_daemon.rc +++ b/metricsd/metrics_daemon.rc @@ -1,4 +1,4 @@ -on boot +on post-fs-data mkdir /data/misc/metrics 0770 system system service metrics_daemon /system/bin/metrics_daemon --uploader -nodaemon