Merge "use --only-enabled" am: d613361932 am: 8180eb47e4

Original change: https://android-review.googlesource.com/c/platform/system/hwservicemanager/+/1921068

Change-Id: I6485edef990cfb0fae6154ae9bb0bdad78a4d087
diff --git a/hwservicemanager.rc b/hwservicemanager.rc
index 2a70afd..df5d7af 100644
--- a/hwservicemanager.rc
+++ b/hwservicemanager.rc
@@ -4,9 +4,9 @@
     group system readproc
     critical
     onrestart setprop hwservicemanager.ready false
-    onrestart class_restart main
-    onrestart class_restart hal
-    onrestart class_restart early_hal
+    onrestart class_restart --only-enabled main
+    onrestart class_restart --only-enabled hal
+    onrestart class_restart --only-enabled early_hal
     task_profiles ServiceCapacityLow HighPerformance
     class animation
     shutdown critical