Skip to content

Commit b74a66e

Browse files
committed
Fixed comments from JanaH.
1 parent 65cdc6e commit b74a66e

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

tasks/systemd-journald-troubleshooting.xml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,19 @@ in the assembly -->
2727
</abstract>
2828
</info>
2929
<procedure>
30-
<title>Troubleshoot <command>journalctl</command> errors</title>
31-
<step><para>Identify the severity and content of the error.The errors are marked with priority level:</para>
30+
<title>View &systemd; errors</title>
31+
<step><para>View the list of failed &systemd; units:</para>
32+
<screen>systemctl --failed</screen>
33+
<para>The list of all failed services appear.</step>
34+
<step><para>Identify the severity and content of the error.</para>
35+
<screen>journalctl -p 0..7 -b</screen>
36+
<para>The list of errors with priority level <literal>0 to 7 appears. The errors are marked with priority level:</para>
3237
<itemizedlist><listitem><para><guimenu>0-2</guimenu>: <command>emerg, alert, crit</command>: Critical issues, system collapse imminent.</para></listitem>
3338
<listitem><para><guimenu>3</guimenu>: <command>err (Error)</command>: A service or application failed to complete a requested operation.</para></listitem>
3439
<listitem><para><guimenu>4</guimenu>: <command>warning </command>: Something undesirable happened but is not an immediate failure.</para></listitem>
3540
<listitem><para><guimenu>5-7</guimenu>: <command>notice, info, debug</command>: Normal operational information and developer diagnostics.</para></listitem></itemizedlist>
3641
</step>
37-
<step><para>Identify the failing unit using the following command:</para>
42+
<step><para>View the error log for the failing service using the following command:</para>
3843
<screen>journalctl -u &lt;failing_service_name&gt;</screen>
3944
<para>The lines preceding the termination message includes information on the error.</para>
4045
<itemizedlist><listitem><para><guimenu>Exit Status</guimenu>: f a service stops, look for a message like Process xxx exited with status 1/FAILURE. A status of 0 is success. Any non-zero status indicates an error. </para></listitem>
@@ -43,26 +48,26 @@ in the assembly -->
4348
</itemizedlist></step>
4449
<step><para>Use detailed views of logs to get detailed information on the error.</para>
4550
<screen>journalctl -xe</screen>
46-
<para>To view all messages from the Apache service during the current boot, with detailed explanations, run the following command:</para>
51+
<para>For example, to view all messages from the Apache service during the current boot, with detailed explanations, run the following command:</para>
4752
<screen>journalctl -u httpd.service -b -xe</screen></step>
4853
</procedure>
4954
<section>
50-
<title>Troubleshoot apache2 error</title>
55+
<title>Troubleshoot &systemd; error</title>
5156
<procedure>
5257
<para>
53-
This section introduces a simple example to illustrate how to find and fix
58+
This section introduces an example to illustrate how to find and fix
5459
the error reported by &systemd; during <command>apache2</command> start-up.
5560
</para>
5661
<step>
5762
<para>
58-
Try to start the apache2 service:
63+
Start the apache2 service:
5964
</para>
60-
<screen># systemctl start apache2
65+
<screen>systemctl start apache2
6166
Job for apache2.service failed. See 'systemctl status apache2' and 'journalctl -xn' for details.</screen>
6267
</step>
6368
<step>
6469
<para>
65-
Let us see what the service's status says:
70+
View the service status:
6671
</para>
6772
<screen>&prompt.sudo;systemctl status apache2
6873
apache2.service - The Apache Webserver
@@ -76,7 +81,7 @@ apache2.service - The Apache Webserver
7681
</step>
7782
<step>
7883
<para>
79-
Show the verbose version of messages related to process ID 11026:
84+
View the verbose version of messages related to process ID 11026:
8085
</para>
8186
<screen>&prompt.sudo;journalctl -o verbose _PID=11026
8287
[...]

0 commit comments

Comments
 (0)