From: Franck Bui Date: Wed, 30 May 2018 15:57:23 +0000 (+0200) Subject: pid1: preserve current value of log level across re-{load,execution} X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=fbec3e74602e2d895748577c0cbb7d46b987184c 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. --- diff --git a/man/elogind.xml b/man/elogind.xml index 7cf3f7d87..bfe130e98 100644 --- a/man/elogind.xml +++ b/man/elogind.xml @@ -839,15 +839,18 @@ SIGRTMIN+22 + + Sets the service manager's log level to debug, in a fashion equivalent to + systemd.log_level=debug on the kernel command line. + + + SIGRTMIN+23 - Sets the log level to debug - (or info on - SIGRTMIN+23), as controlled via - systemd.log_level=debug (or - systemd.log_level=info on - SIGRTMIN+23) on the kernel command - line. + Restores the log level to its configured value. The configured value is derived from – in order + of priority – the value specified with systemd.log-level= on the kernel command line, or the + value specified with in the configuration file, or the built-in default of + info.