summaryrefslogtreecommitdiff
path: root/man/systemd-coredump.html
blob: 291832e58f95679b54ca6be243ebb4589cc8ec01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-coredump</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
    a.headerlink {
      color: #c60f0f;
      font-size: 0.8em;
      padding: 0 4px 0 4px;
      text-decoration: none;
      visibility: hidden;
    }

    a.headerlink:hover {
      background-color: #c60f0f;
      color: white;
    }

    h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
      visibility: visible;
    }
  </style><a href="index.html">Index </a>·
  <a href="systemd.directives.html">Directives </a>·
  <a href="../python-systemd/index.html">Python </a>·

  <span style="float:right">systemd 221</span><hr><div class="refentry"><a name="systemd-coredump"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-coredump — Log and store core dumps</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/usr/lib/systemd/systemd-coredump</code></p></div><div class="refsect1"><a name="idm47861817362960"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p><span class="command"><strong>systemd-coredump</strong></span> can be used as a helper
    binary by the kernel when a user space program receives a fatal
    signal and dumps core. For it to be used in this capacity, it must
    be specified by the
    <code class="varname">kernel.core_pattern</code> <a href="http://man7.org/linux/man-pages/man8/sysctl.8.html"><span class="citerefentry"><span class="refentrytitle">sysctl</span>(8)</span></a>
    setting. Systemd installs
    <code class="filename">/usr/lib/sysctl.d/50-coredump.conf</code> which
    configures <code class="varname">kernel.core_pattern</code> to invoke
    <span class="command"><strong>systemd-coredump</strong></span>. This file may be masked or
    overridden to use a different setting following normal
    <a href="sysctl.d.html"><span class="citerefentry"><span class="refentrytitle">sysctl.d</span>(5)</span></a> rules.</p><p>The behaviour of a specific program upon reception of a
    signal is governed by a few factors which are described in detail
    in <a href="http://man7.org/linux/man-pages/man5/core.5.html"><span class="citerefentry"><span class="refentrytitle">core</span>(5)</span></a>.
    In particular, the coredump will only be processed when the
    related resource limits are high enough. For programs started by
    <span class="command"><strong>systemd</strong></span> those may be set using
    <code class="varname">LimitCore=</code> (see
    <a href="systemd.exec.html"><span class="citerefentry"><span class="refentrytitle">systemd.exec</span>(5)</span></a>).
    </p><p><span class="command"><strong>systemd-coredump</strong></span> will log the coredump
    including a backtrace if possible, and store the core (contents of
    process' memory contents) in an external file on disk in
    <code class="filename">/var/lib/systemd/coredump</code>, or directly in
    the journal. This behaviour may be modified using
    <a href="coredump.conf.html"><span class="citerefentry"><span class="refentrytitle">coredump.conf</span>(5)</span></a>.</p><p>Apart from the
    <a href="journalctl.html"><span class="citerefentry"><span class="refentrytitle">journalctl</span>(1)</span></a>
    log viewer,
    <a href="coredumpctl.html"><span class="citerefentry"><span class="refentrytitle">coredumpctl</span>(1)</span></a>
    may be used to list and extract coredumps.</p></div><div class="refsect1"><a name="idm47861812392240"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
      <a href="coredump.conf.html"><span class="citerefentry"><span class="refentrytitle">coredump.conf</span>(5)</span></a>,
      <a href="coredumpctl.html"><span class="citerefentry"><span class="refentrytitle">coredumpctl</span>(1)</span></a>,
      <a href="systemd-journald.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-journald.service</span>(8)</span></a>,
      <a href="http://man7.org/linux/man-pages/man5/core.5.html"><span class="citerefentry"><span class="refentrytitle">core</span>(5)</span></a>,
      <a href="sysctl.d.html"><span class="citerefentry"><span class="refentrytitle">sysctl.d</span>(5)</span></a>,
      <a href="systemd-sysctl.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-sysctl.service</span>(8)</span></a>.
    </p></div></div></body></html>