488889
155
Zoom out
Zoom in
Previous page
1/530
Next page
systemd comes with its own logging mechanism (“The Journal”) that logs system
messages. This allows to display the service messages together with status messages.
The status command works similar to tail and can also display the log messages
in different formats, making it a powerful debugging tool.
Show Service Start-Up Failure
Whenever a service fails to start, use systemctl status
<my_service>.service to get a detailed error message:
www.example.com: ~ # systemctl start apache2.service
Job failed. See system journal and 'systemctl status' for details.
www.example.com: ~ # systemctl status apache2.service
Loaded: loaded (/lib/systemd/system/apache2.service; disabled)
Active: failed (Result: exit-code) since Mon, 04 Jun 2012 16:52:26
+0200; 29s ago
Process: 3088 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -k start
(code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/apache2.service
Jun 04 16:52:26 g144 start_apache2[3088]: httpd2-prefork: Syntax error on
line
205 of /etc/apache2/httpd.conf: Syntax error on li...alHost>
Show Last n Service Messages
The default behavior of the status subcommand is displaying the last ten mes-
sages a service issued. To change the number of messages to show, use the
--lines=n parameter,
systemctl status ntp.service
systemctl --lines=20 status ntp.service
Show Service Messages in Append Mode
To display a “live stream” of service messages, use the --follow option, which
works just like tail -f:
systemctl --follow status ntp.service
Messages Output Format
The --output=mode parameter allows to change the output format of service
messages. The most important modes available are:
short
The default format. Shows the log messages with a human readable timestamp.
The systemd daemon 137
155


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Suse openSUSE 12.2 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Suse openSUSE 12.2 in the language / languages: English as an attachment in your email.

The manual is 8,65 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Suse openSUSE 12.2

Suse openSUSE 12.2 Quick start guide - English - 284 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info