summaryrefslogtreecommitdiff
path: root/src/shutdown/shutdown.c
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2021-03-04 20:00:05 -0800
committerAnita Zhang <the.anitazha@gmail.com>2021-03-04 20:08:26 -0800
commit016f36ae72611210d6517b37429bfbdc26c5e31c (patch)
tree5a9fe2287c348b63987c6a99b1a56f318b4554c0 /src/shutdown/shutdown.c
parentf975f1cc748929942188ae1490cf8480f8a64877 (diff)
downloadsystemd-016f36ae72611210d6517b37429bfbdc26c5e31c.tar.gz
shutdown: log on container exit
Diffstat (limited to 'src/shutdown/shutdown.c')
-rw-r--r--src/shutdown/shutdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c
index c1fdc885af..06b6618ff4 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. */
}