healthd: add healthd.rc

Split healthd section from init.rc into its own. This allows
healthd.rc to be excluded from the build when healthd is excluded.

Test: builds
Test: exclude healthd from build, healthd.rc is not installed
Bug: 77541952
Change-Id: I1c055f14c5862631f359fd0029289da8f43af063
This commit is contained in:
Yifan Hong 2018-04-04 14:08:04 -07:00
parent 0a5bc29353
commit fd1aa70a0f
3 changed files with 5 additions and 5 deletions

View file

@ -56,6 +56,7 @@ cc_binary {
cc_binary {
name: "healthd",
init_rc: ["healthd.rc"],
srcs: [
"HealthServiceHealthd.cpp",
],

4
healthd/healthd.rc Normal file
View file

@ -0,0 +1,4 @@
service healthd /system/bin/healthd
class hal
critical
group root system wakelock

View file

@ -736,11 +736,6 @@ service ueventd /sbin/ueventd
seclabel u:r:ueventd:s0
shutdown critical
service healthd /system/bin/healthd
class hal
critical
group root system wakelock
service console /system/bin/sh
class core
console