]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shutdown: log on container exit 18886/head
authorAnita Zhang <the.anitazha@gmail.com>
Fri, 5 Mar 2021 04:00:05 +0000 (20:00 -0800)
committerAnita Zhang <the.anitazha@gmail.com>
Fri, 5 Mar 2021 04:08:26 +0000 (20:08 -0800)
src/shutdown/shutdown.c

index c1fdc885afb559313232e1a284545072fb647ed5..06b6618ff4c94cd176df81bec0ebba8b09ccbb54 100644 (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. */
         }