summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-14 15:33:39 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-14 15:37:09 +0100
commitf41de9596627ef68fcb4c0dae4b9bd8033701230 (patch)
treef58d1b549bc9a66cad5c1b3dc22685b85b91e868
parent9b634ea5fb7cb5466f1f7873204bd67d02652981 (diff)
shutdown: print a nice message when terminating a container
-rw-r--r--src/shutdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shutdown.c b/src/shutdown.c
index df2d850afd..a2f3b539b3 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -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();