Skip to content

main: switch log file when switching mode

Ray Strode requested to merge wip/close-the-log into master

plymouthd can be run in various modes, for, e.g., boot up, shutdown, and software upgrades.

The mode plymouthd is using can be changed at runtime.

The "boot" mode keeps a log of the console messages that happen during boot up. At the moment, when changing from the "boot" mode to any other mode, the log file is kept open.

That open file can cause problems during shutdown.

This commit makes sure the log file is properly closed when the mode is changed from boot to another mode.

#88

Merge request reports