projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21697fa
)
shutdown: log on container exit
author
Anita Zhang
<the.anitazha@gmail.com>
Fri, 5 Mar 2021 04:00:05 +0000
(20:00 -0800)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 15 May 2021 18:15:16 +0000
(20:15 +0200)
(cherry picked from commit
016f36ae72611210d6517b37429bfbdc26c5e31c
)
(cherry picked from commit
d51d8172d66506448fb1612c85df7b452264e08e
)
(cherry picked from commit
23f4361f8ca15775403e6addcbbf6024731e479d
)
src/shutdown/shutdown.c
patch
|
blob
|
history
diff --git
a/src/shutdown/shutdown.c
b/src/shutdown/shutdown.c
index 6b9089302454108c7571e541467cb1d8fedd6129..5775fff16802f8f86aa9946bfeb4fd6921de3f36 100644
(file)
--- a/
src/shutdown/shutdown.c
+++ b/
src/shutdown/shutdown.c
@@
-542,8
+542,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. */
}