chiark / gitweb /
timer: add timer persistance (aka anacron-like behaviour)
[elogind.git] / man / systemd-coredumpctl.xml
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3         "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4
5 <!--
6   This file is part of systemd.
7
8   Copyright 2012 Zbigniew JÄ™drzejewski-Szmek
9
10   systemd is free software; you can redistribute it and/or modify it
11   under the terms of the GNU Lesser General Public License as published by
12   the Free Software Foundation; either version 2.1 of the License, or
13   (at your option) any later version.
14
15   systemd is distributed in the hope that it will be useful, but
16   WITHOUT ANY WARRANTY; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18   Lesser General Public License for more details.
19
20   You should have received a copy of the GNU Lesser General Public License
21   along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 -->
23
24 <refentry id="systemd-coredumpctl" conditional='ENABLE_COREDUMP'
25           xmlns:xi="http://www.w3.org/2001/XInclude">
26
27         <refentryinfo>
28                 <title>systemd-coredumpctl</title>
29                 <productname>systemd</productname>
30
31                 <authorgroup>
32                         <author>
33                                 <contrib>Developer</contrib>
34                                 <firstname>Zbigniew</firstname>
35                                 <surname>JÄ™drzejewski-Szmek</surname>
36                                 <email>zbyszek@in.waw.pl</email>
37                         </author>
38                 </authorgroup>
39         </refentryinfo>
40
41         <refmeta>
42                 <refentrytitle>systemd-coredumpctl</refentrytitle>
43                 <manvolnum>1</manvolnum>
44         </refmeta>
45
46         <refnamediv>
47                 <refname>systemd-coredumpctl</refname>
48                 <refpurpose>Retrieve coredumps from the journal</refpurpose>
49         </refnamediv>
50
51         <refsynopsisdiv>
52                 <cmdsynopsis>
53                         <command>systemd-coredumpctl</command>
54                         <arg choice="opt" rep="repeat">OPTIONS</arg>
55                         <arg choice="req">COMMAND</arg>
56                         <arg choice="opt" rep="repeat">PID|COMM|EXE|MATCH</arg>
57                 </cmdsynopsis>
58         </refsynopsisdiv>
59
60         <refsect1>
61                 <title>Description</title>
62
63                 <para><command>systemd-coredumpctl</command> may be used to
64                 retrieve coredumps from
65                 <citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
66         </refsect1>
67
68         <refsect1>
69                 <title>Options</title>
70
71                 <para>The following options are understood:</para>
72
73                 <variablelist>
74                         <varlistentry>
75                                 <term><option>-F</option></term>
76                                 <term><option>--field=</option></term>
77
78                                 <listitem><para>Print all possible
79                                 data values the specified field
80                                 takes in matching coredump entries of the
81                                 journal.</para></listitem>
82                         </varlistentry>
83
84                         <varlistentry>
85                                 <term><option>-o</option></term>
86                                 <term><option>--output=FILE</option></term>
87
88                                 <listitem><para>Write the core to
89                                 <option>FILE</option>.</para></listitem>
90                         </varlistentry>
91
92                         <varlistentry>
93                                 <term><option>--no-legend</option></term>
94
95                                 <listitem><para>Do not print the column headers.
96                                 </para></listitem>
97                         </varlistentry>
98
99                         <xi:include href="standard-options.xml" xpointer="help" />
100                         <xi:include href="standard-options.xml" xpointer="version" />
101                         <xi:include href="standard-options.xml" xpointer="no-pager" />
102                 </variablelist>
103
104                 <para>The following commands are understood:</para>
105
106                 <variablelist>
107                         <varlistentry>
108                                 <term><command>list</command></term>
109
110                                 <listitem><para>List coredumps captured in the journal
111                                 matching specified characteristics.</para></listitem>
112                         </varlistentry>
113
114                         <varlistentry>
115                                 <term><command>dump</command></term>
116
117                                 <listitem><para>Extract the last coredump
118                                 matching specified characteristics.
119                                 The coredump will be written on standard output,
120                                 unless an output file is specified with
121                                 <option>-o/--output</option>.
122                                 </para></listitem>
123                         </varlistentry>
124
125
126                         <varlistentry>
127                                 <term><command>gdb</command></term>
128
129                                 <listitem><para>Invoke the GNU
130                                 debugger on the last coredump matching
131                                 specified characteristics.
132                                 </para></listitem>
133                         </varlistentry>
134
135                 </variablelist>
136
137         </refsect1>
138
139         <refsect1>
140                 <title>Matching</title>
141
142                 <para>Match can be:</para>
143
144                 <variablelist>
145                         <varlistentry>
146                                 <term><replaceable>PID</replaceable></term>
147
148                                 <listitem><para>Process ID of the
149                                 process that dumped
150                                 core. An integer.</para></listitem>
151                         </varlistentry>
152
153                         <varlistentry>
154                                 <term><replaceable>COMM</replaceable></term>
155
156                                 <listitem><para>Name of the executable
157                                 (matches <option>COREDUMP_COMM=</option>).
158                                 Must not contain slashes.
159                                 </para></listitem>
160                         </varlistentry>
161
162                         <varlistentry>
163                                 <term><replaceable>EXE</replaceable></term>
164
165                                 <listitem><para>Path to the executable
166                                 (matches <option>COREDUMP_EXE=</option>).
167                                 Must contain at least one slash.
168                                 </para></listitem>
169                         </varlistentry>
170
171                         <varlistentry>
172                                 <term><replaceable>MATCH</replaceable></term>
173
174                                 <listitem><para>General journalctl predicates
175                                 (see <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
176                                 Must contain an equals sign.
177                                 </para></listitem>
178                         </varlistentry>
179                 </variablelist>
180         </refsect1>
181
182         <refsect1>
183                 <title>Exit status</title>
184                 <para>On success, 0 is returned; otherwise, a non-zero failure
185                 code is returned. Not finding any matching coredumps is treated
186                 as failure.
187                 </para>
188         </refsect1>
189
190         <refsect1>
191                 <title>See Also</title>
192                 <para>
193                         <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
194                         <citerefentry><refentrytitle>gdb</refentrytitle><manvolnum>1</manvolnum></citerefentry>
195                 </para>
196         </refsect1>
197
198 </refentry>