mirror of
https://github.com/systemd/systemd.git
synced 2024-12-24 09:33:32 +08:00
shutdown: print a nice message when terminating a container
This commit is contained in:
parent
9b634ea5fb
commit
f41de95966
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user