]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
pid1: preserve current value of log target across re-{load,execution}
authorFranck Bui <fbui@suse.com>
Fri, 1 Jun 2018 16:21:03 +0000 (18:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Jun 2018 16:52:27 +0000 (18:52 +0200)
commitbda7d78ba178e70c2279261a77be83f755ad0e49
treea2b12ccca9a86c0280e1e3e8f1fafff045cb3016
parenta6ecbf836c1e70cdf05a1ad6b78c86c5aef4dca3
pid1: preserve current value of log target across re-{load,execution}

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

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

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