X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd-coredump.xml;h=b25f0c4f1c2b371370be7f5a7b6121638c964d34;hb=8d4798e82138a55336cfb2ec1a661639da5829af;hp=a28dc62e5a8c19db62bca175877a520ee075351e;hpb=51e0b250779d28eaffff886b5a3cb208c6813a40;p=thirdparty%2Fsystemd.git diff --git a/man/systemd-coredump.xml b/man/systemd-coredump.xml index a28dc62e5a8..b25f0c4f1c2 100644 --- a/man/systemd-coredump.xml +++ b/man/systemd-coredump.xml @@ -1,24 +1,9 @@ - + systemd-coredump systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -52,14 +28,26 @@ /usr/lib/systemd/systemd-coredump + /usr/lib/systemd/systemd-coredump systemd-coredump@.service systemd-coredump.socket Description - systemd-coredump is a system service that can acquire core dumps - from the kernel and handle them in various ways. + systemd-coredump@.service is a system service that can acquire core + dumps from the kernel and handle them in various ways. The systemd-coredump + executable does the actual work. It is invoked twice: once as the handler by the kernel, and the + second time in the systemd-coredump@.service to actually write the data to + the journal. + + When the kernel invokes systemd-coredump to handle a core dump, it runs + in privileged mode, and will connect to the socket created by the + systemd-coredump.socket unit, which in turn will spawn an unprivileged + systemd-coredump@.service instance to process the core dump. Hence + systemd-coredump.socket and systemd-coredump@.service + are helper units which do the actual processing of core dumps and are subject to normal service + management. Core dumps can be written to the journal or saved as a file. Once saved they can be retrieved for further processing, for example in @@ -70,18 +58,20 @@ if possible to the journal and store the core dump itself in an external file in /var/lib/systemd/coredump. - When the kernel invokes systemd-coredump to handle a core dump, - it will connect to the socket created by the systemd-coredump.socket - unit, which in turn will spawn a systemd-coredump@.service instance - to process the core dump. Hence systemd-coredump.socket - and systemd-coredump@.service are helper units which do the actual - processing of core dumps and are subject to normal service management. - The behavior of a specific program upon reception of a signal is governed by a few factors which are described in detail in core5. In particular, the core dump will only be processed when the related resource limits are sufficient. + + It is also possible to invoke systemd-coredump with + option. In this case, systemd-coredump expects + a journal entry in the journal + Journal Export Format + on standard input. The entry should contain a MESSAGE= field and any additional + metadata fields the caller deems reasonable. systemd-coredump will append + additional metadata fields in the same way it does for core dumps received from the kernel. In + this mode, no core dump is stored in the journal. @@ -91,23 +81,30 @@ systemd.exec5. - In order to be used systemd-coredump must be configured in + In order to be used by the kernel to handle core dumps, + systemd-coredump must be configured in sysctl8 parameter kernel.core_pattern. The syntax of this parameter is explained in core5. - Systemd installs the file /usr/lib/sysctl.d/50-coredump.conf which configures + systemd installs the file /usr/lib/sysctl.d/50-coredump.conf which configures kernel.core_pattern accordingly. This file may be masked or overridden to use a different setting following normal sysctl.d5 - rules. - If the sysctl configuration is modified, it must be updated in the kernel before - it takes effect, see + rules. If the sysctl configuration is modified, it must be updated in the kernel before it + takes effect, see sysctl8 and systemd-sysctl8. - The behaviour of systemd-coredump itself is configured through the configuration file + In order to by used in the mode, an appropriate backtrace + handler must be installed on the sender side. For example, in case of + python1, this + means a sys.excepthook must installed, see + systemd-coredump-python. + + + The behavior of systemd-coredump itself is configured through the configuration file /etc/systemd/coredump.conf and corresponding snippets /etc/systemd/coredump.conf.d/*.conf, see coredump.conf5. A new @@ -118,6 +115,16 @@ core dumps and files can be set in files /etc/systemd/coredump.conf and snippets mentioned above. In addition the storage time of core dump files is restricted by systemd-tmpfiles, corresponding settings are by default in /usr/lib/tmpfiles.d/systemd.conf. + + + Disabling coredump processing + + To disable potentially resource-intensive processing by systemd-coredump, + set Storage=none +ProcessSizeMax=0 in + coredump.conf5. + +