diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-29 15:44:39 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-29 15:54:53 +0200 |
commit | 76ed04d936f757763c32db5dbaaebd8b13785d7b (patch) | |
tree | 9a022c24978d3494e8409d66d080cf4fe741b3d4 /man/systemd-analyze.xml | |
parent | 716e6f4488d3ea7bb91c40577b588253cfe00216 (diff) | |
download | systemd-76ed04d936f757763c32db5dbaaebd8b13785d7b.tar.gz |
analyze: add exit-codes verb
Diffstat (limited to 'man/systemd-analyze.xml')
-rw-r--r-- | man/systemd-analyze.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 7112362ac5..8e9f24caac 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -86,6 +86,12 @@ <cmdsynopsis> <command>systemd-analyze</command> <arg choice="opt" rep="repeat">OPTIONS</arg> + <arg choice="plain">exit-codes</arg> + <arg choice="opt" rep="repeat"><replaceable>CODE</replaceable></arg> + </cmdsynopsis> + <cmdsynopsis> + <command>systemd-analyze</command> + <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="plain">condition</arg> <arg choice="plain"><replaceable>CONDITION</replaceable>…</arg> </cmdsynopsis> @@ -366,6 +372,30 @@ $ eog targets.svg</programlisting> </refsect2> <refsect2> + <title><command>systemd-analyze exit-codes <optional><replaceable>CODE</replaceable>...</optional></command></title> + + <para>This command prints a list of exit codes along with their "class", i.e. the source of the + definition (one of <literal>glibc</literal>, <literal>systemd</literal>, <literal>LSB</literal>, or + <literal>BSD</literal>), see the Process Exit Codes section in + <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>. + If no additional arguments are specified, all known codes are are shown. Otherwise, only the + definitions for the specified codes are shown.</para> + + <example> + <title><command>Show some example exit code names</command></title> + + <programlisting>$ systemd-analyze exit-codes 0 1 {63..65} +NAME CODE CLASS +SUCCESS 0 glibc +FAILURE 1 glibc +- 63 - +USAGE 64 BSD +DATAERR 65 BSD +</programlisting> + </example> + </refsect2> + + <refsect2> <title><command>systemd-analyze condition <replaceable>CONDITION</replaceable>...</command></title> <para>This command will evaluate <varname noindex='true'>Condition*=...</varname> and |