chiark / gitweb /
shutdown: print a nice message when terminating a container
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Mar 2011 14:33:39 +0000 (15:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Mar 2011 14:37:09 +0000 (15:37 +0100)
src/shutdown.c

index df2d850..a2f3b53 100644 (file)
@@ -323,8 +323,10 @@ int main(int argc, char *argv[]) {
 
         /* If we are in a container, just exit, this will kill our
          * container for good. */
-        if (in_container)
+        if (in_container) {
+                log_error("Exiting container.");
                 exit(0);
+        }
 
         sync();