diff options
author | Tom Cherry <tomcherry@google.com> | 2018-10-17 13:14:55 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2018-10-17 14:21:37 -0700 |
commit | f18b748b9145bc971fd4138de43f78593bf4309d (patch) | |
tree | bd70b0011e59d50ee0f6991e7a0ea3c61a30804d /rootdir | |
parent | 4bc53d20afce1e1201f8effa2404d97aa3c67b50 (diff) | |
download | system_core-f18b748b9145bc971fd4138de43f78593bf4309d.tar.gz system_core-f18b748b9145bc971fd4138de43f78593bf4309d.tar.bz2 system_core-f18b748b9145bc971fd4138de43f78593bf4309d.zip |
Start logd and service managers during the 'init' trigger
Now that we mount partitions early, services can be started before the
'fs' trigger. We therefore start the service managers as early as
possible to ensure their transports are online, without device
specific rc files needing to handle that. We also start logd even
one step earlier to ensure that we capture all possible logd.
Bug: 89689596
Test: logging works for early services, include the servicemanagers
Change-Id: I75dbfcd26eb6fa77f002de10afd00f085c93aa07
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 21d234f78..ea83ef9be 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -275,6 +275,13 @@ on init chown root root /apex restorecon /apex + # Start logd before any other services run to ensure we capture all of their logs. + start logd + # Start essential services. + start servicemanager + start hwservicemanager + start vndservicemanager + # Healthd can trigger a full boot from charger mode by signaling this # property when the power button is held. on property:sys.boot_from_charger_mode=1 @@ -331,11 +338,6 @@ on post-fs # /vendor/build.prop and # /factory/factory.prop load_system_props - # start essential services - start logd - start servicemanager - start hwservicemanager - start vndservicemanager start vold exec - system system -- /system/bin/vdc checkpoint markBootAttempt |