From 8dccf3ffd1e5de142987ebd3cf9ed8dfebb17f1d Mon Sep 17 00:00:00 2001 From: Jeffrey Huang Date: Wed, 19 Feb 2020 10:56:17 -0800 Subject: [PATCH] Update init.rc for statsd setup Apexes do not support "on" macros, so we are moving them into the system partition Bug: 145923087 Test: m -j Change-Id: Ic671a51f2ec5b91f2f631bae0f509b4aa2d057b4 Merged-In: Ic84e77269f80097b675d6a1b0d206c2bae7d918d --- rootdir/init.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 782f96701..28d47b9fb 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -727,6 +727,12 @@ on post-fs-data # Create root dir for Incremental Service mkdir /data/incremental 0771 system system encryption=Require + # Create directories for statsd + mkdir /data/misc/stats-data/ 0770 statsd system + mkdir /data/misc/stats-service/ 0770 statsd system + mkdir /data/misc/stats-active-metric/ 0770 statsd system + mkdir /data/misc/train-info/ 0770 statsd system + # Wait for apexd to finish activating APEXes before starting more processes. wait_for_prop apexd.status ready perform_apex_config