add "shutdown critical" to service
- "shutdown critical" prevents killing the service during
shutdown. And the service will be started if not running.
- Without it, services will be killed by SIGTERM / SIGKILL during shutdown.
- Even services with "shutdown critical" will be killed if shutdown
times out.
- Removes ueventd and vold from hard coded list. Each service's rc will
be updated to add "shutdown critical". watchdogd is still kept in the list.
bug: 37626581
Test: reboot and check last kmsg
(cherry picked from commit cccb34fce8798f2a359c6eb0e394ef9460673629)
Change-Id: I3c6aeb7151e64beca4b435f843ae64455217262d
diff --git a/rootdir/init.rc b/rootdir/init.rc
index c32d41b..1f7a5a3 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -684,6 +684,7 @@
class core
critical
seclabel u:r:ueventd:s0
+ shutdown critical
service healthd /system/bin/healthd
class core