journald: enable persistent FD Store to fix logging during soft-reboot
authorLuca Boccassi <bluca@debian.org>
Fri, 31 May 2024 15:40:12 +0000 (16:40 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 3 Jun 2024 15:30:54 +0000 (16:30 +0100)
commitd6243ebeddec488299efbf6a5b3c840a42c69eb4
tree41c47f84c59c45119ea38ce1af042dd61d7c90c8
parent4762cf0b55bc62d27192f38fcbddcbb07a6b3a31
journald: enable persistent FD Store to fix logging during soft-reboot

A unit with StandardOutput=journal (the default) will get its stdout/stderr sockets
disconnected when journald stops, as the file descriptors on journald's side are
not preserved (it works on restart, as the FD Store keeps them open during restarts).
Set FileDescriptorStorePreserve=yes so that the journal FD's stay open during a soft
reboot, and applications don't get broken stdout/stderr.
test/units/TEST-82-SOFTREBOOT.sh
units/systemd-journald.service.in