Introduce the ConfigureMemcg() method
The Service::Start() method is so long that its length negatively
affects readability of the code. Hence this patch that splits
Service::Start().
Test: Booted Android in Cuttlefish.
Change-Id: I972f4e60844bb0d133b1cca1fd4e06bb89fc5f37
Signed-off-by: Bart Van Assche <bvanassche@google.com>
diff --git a/init/service.h b/init/service.h
index 7339370..54c923b 100644
--- a/init/service.h
+++ b/init/service.h
@@ -146,6 +146,7 @@
void SetProcessAttributesAndCaps();
void ResetFlagsForStart();
Result<void> CheckConsole();
+ void ConfigureMemcg();
static unsigned long next_start_order_;
static bool is_exec_service_running_;