Siduction Forum

Siduction Forum => Software - Support => Topic started by: hypper on 2016/01/13, 21:09:19

Title: systemd shutdown messages
Post by: hypper on 2016/01/13, 21:09:19
does anyone know how to read or save the shutdown messages of systemd?




cheers
mathias
Title: Re: systemd shutdown messages
Post by: bluelupo on 2016/01/13, 22:18:27
Hi hypper,
you can watch the command journalctl see the log messages. More information with "man journalctl" and here:

https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs

http://0pointer.de/blog/projects/journalctl.html
Title: Re: systemd shutdown messages
Post by: hypper on 2016/01/14, 09:01:57
i know journalctl, but i couln't find any message from the shutdown process. maybe i have to dig deeper into it.
Title: Re: systemd shutdown messages
Post by: ayla on 2016/01/14, 09:24:20
You may try:
Code: [Select]
journalctl -b -1 -n250where -b would show you the journal of the current bootup and -b -1 the journal of the one before. With -n250 your journalctl will show you the last 250 lines only. This is enough on my system to include every message from the system shutdown, the value on your system may differ a bit.

greets
ayla

Title: Re: systemd shutdown messages
Post by: Geier0815 on 2016/01/14, 10:33:09
If it's ok for you that you have to see all the messages of the system-start too, change the /etc/default/grub like
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.show_status=true"
systemd.show_status=true is the important thing to see messages.
Title: Re: systemd shutdown messages
Post by: der_bud on 2016/01/14, 12:14:58
Perhaps this article: "Diagnosing Shutdown Problems (http://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1)" in the documentation might be helpful.
Title: Re: systemd shutdown messages
Post by: hypper on 2016/01/15, 08:44:46
thank you all. this is exactly what i was looking for.