Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e05d3b9 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

Replace writepid with task_profiles command for cgroup migration



writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Iaaab0f99fee88f07cae5eae34f4c8224a429cc5e
parent 5f852b9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ service rss_hwm_reset /system/bin/rss_hwm_reset
    oneshot
    user nobody
    group nobody readproc
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
    capabilities DAC_OVERRIDE

on property:sys.rss_hwm_reset.on=1
+1 −1
Original line number Diff line number Diff line
@@ -9,5 +9,5 @@ service servicemanager /system/bin/servicemanager
    onrestart class_restart main
    onrestart class_restart hal
    onrestart class_restart early_hal
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
    shutdown critical
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ service vndservicemanager /vendor/bin/vndservicemanager /dev/vndbinder
    class core
    user system
    group system readproc
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
    onrestart class_restart main
    onrestart class_restart hal
    onrestart class_restart early_hal
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@ service virtual_touchpad /system/bin/virtual_touchpad
  class core
  user system
  group system input uhid
  writepid /dev/cpuset/system/tasks
  task_profiles VrServiceCapacityNormal