diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index 7c0b15ead..17986b9e3 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -204,6 +204,7 @@ const std::map kBootReasonMap = { {"reboot,shell", 66}, {"reboot,adb", 67}, {"reboot,userrequested", 68}, + {"shutdown,container", 69}, // Host OS asking Android Container to shutdown }; // Converts a string value representing the reason the system booted to an diff --git a/init/init.cpp b/init/init.cpp index e611f18d5..ad045b1e0 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -417,8 +417,7 @@ static void HandleSigtermSignal() { return; } - LOG(INFO) << "Handling SIGTERM, shutting system down"; - HandlePowerctlMessage("shutdown"); + HandlePowerctlMessage("shutdown,container"); } static void InstallSigtermHandler() {