From: Anita Zhang Date: Fri, 5 Mar 2021 04:00:05 +0000 (-0800) Subject: shutdown: log on container exit X-Git-Tag: v249-rc1~511^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=016f36ae72611210d6517b37429bfbdc26c5e31c;p=thirdparty%2Fsystemd.git shutdown: log on container exit --- diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index c1fdc885afb..06b6618ff4c 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -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. */ }