Merge "init: report shutdown,container for sigterm of init"

This commit is contained in:
Mark Salyzyn 2017-09-27 19:32:31 +00:00 committed by Gerrit Code Review
commit d2b5a2417f
2 changed files with 2 additions and 2 deletions

View file

@ -204,6 +204,7 @@ const std::map<std::string, int32_t> 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

View file

@ -417,8 +417,7 @@ static void HandleSigtermSignal() {
return;
}
LOG(INFO) << "Handling SIGTERM, shutting system down";
HandlePowerctlMessage("shutdown");
HandlePowerctlMessage("shutdown,container");
}
static void InstallSigtermHandler() {