shutdown: log on container exit

This commit is contained in:
Anita Zhang
2021-03-04 20:08:26 -08:00
parent f975f1cc74
commit 016f36ae72
+3 -1
View File
@@ -559,8 +559,10 @@ int main(int argc, char *argv[]) {
sync_with_progress();
if (streq(arg_verb, "exit")) {
if (in_container)
if (in_container) {
log_info("Exiting container.");
return arg_exit_code;
}
cmd = RB_POWER_OFF; /* We cannot exit() on the host, fallback on another method. */
}