]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
pid1: preserve current value of log level across re-{load,execution}
authorFranck Bui <fbui@suse.com>
Wed, 30 May 2018 15:57:23 +0000 (17:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Jun 2018 16:52:27 +0000 (18:52 +0200)
commita6ecbf836c1e70cdf05a1ad6b78c86c5aef4dca3
tree291745679323a6cf89cd4f4045d62aae8688394b
parent6f8a8b84f28be7a6133bbde1479dee9abad6cee8
pid1: preserve current value of log level across re-{load,execution}

To make debugging easier, this patches allows one to change the log level and
do reload/reexec without modifying configuration permanently, which makes
debugging easier.

Indeed if one changed the log max level at runtime (via the bus or via
signals), the change was lost on the next daemon reload/reexecution.

In order to restore the original value back (set via system.conf, environment
variables or any other means), the empty string in the "LogLevel" property is
now supported as well as sending SIGRTMIN+23 signal.
man/systemd.xml
src/core/dbus-manager.c
src/core/main.c
src/core/manager.c
src/core/manager.h