]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: Propagate exit status via notify socket when running in VM
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 11 Apr 2023 11:17:13 +0000 (13:17 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 12 Apr 2023 13:03:43 +0000 (15:03 +0200)
commit3a89cb84a62314c3c4807016dbff4359d6988d79
tree38c5a1b9bfcd14c64fabad9b111551e51b57d30c
parent623a00020f116d8e9c70608a9e4f7cc978342441
core: Propagate exit status via notify socket when running in VM

When running in a container, we can propagate the exit status of
pid1 as usual via the process exit status. This is not possible
when running in a VM. Instead, let's send EXIT_STATUS=%i via the
notify socket if one is configured. The user running the VM can then
pick up the exit status from the notify socket after the VM has shut
down.
src/core/main.c
src/shutdown/shutdown.c