From 6423ccd96be44d148466787f7419bc078b08c8b5 Mon Sep 17 00:00:00 2001 From: Keun young Park Date: Tue, 23 Jun 2020 20:32:54 -0700 Subject: [PATCH] Start statsd before starting zygote - zygote needs statsd for logging boot time event. - statsd starting later leads into stats logging failure which is reported by all child processes of zygote later. This brings lots of noise in statsd error. Bug: 159664734 Test: reboot and check if error log does not show up E statsd : Found dropped events: 1 error -19 last atom tag 240 from uid 10169 Change-Id: Ie585febb50a9668671c8fda41a872595baae8385 --- rootdir/init.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index e7ba1f3c3..13e890bb2 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -821,6 +821,7 @@ on zygote-start && property:persist.sys.fuse="" on zygote-start && property:ro.crypto.state=unencrypted # A/B update verifier that marks a successful boot. exec_start update_verifier_nonencrypted + start statsd start netd start zygote start zygote_secondary @@ -828,6 +829,7 @@ on zygote-start && property:ro.crypto.state=unencrypted on zygote-start && property:ro.crypto.state=unsupported # A/B update verifier that marks a successful boot. exec_start update_verifier_nonencrypted + start statsd start netd start zygote start zygote_secondary @@ -835,6 +837,7 @@ on zygote-start && property:ro.crypto.state=unsupported on zygote-start && property:ro.crypto.state=encrypted && property:ro.crypto.type=file # A/B update verifier that marks a successful boot. exec_start update_verifier_nonencrypted + start statsd start netd start zygote start zygote_secondary