You are not logged in.

#1 2012-11-10 12:47:29

javex
Member
Registered: 2011-12-30
Posts: 76

[SOLVED] systemd boot log

Hi,

I switched to systemd and now I am missing my boot log. True journalctl contains a lot of output, but what is missing from that are the messages printed to tty1 during boot, i.e. the [ OK ] messages and errors printed to it. I have grepped through the complete output: No sign of any of the messages.

I ended up disabling clearing of tty1 and my autologin so I could read the messages, but I would rather have them logged somewhere. Previously, those messages could be found in /var/log/boot but there is nothing added after my upgrade to systemd.

Where can I find these messages or how can I enable logging them?

Last edited by javex (2012-11-13 14:22:37)

Offline

#2 2012-11-10 12:53:35

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] systemd boot log

I can't help you with that specific query, but you can use 'systemctl --failed' to see which units have failed.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-11-12 20:01:21

miscreant
Member
Registered: 2012-11-12
Posts: 5

Re: [SOLVED] systemd boot log

I use the journal to filter the output of systemd, and make pull from only the last boot :

journalctl /usr/lib/systemd/systemd -b

Not sure how you would go about outputting this to a file on each boot though.. anyway, hope that helps!

Last edited by miscreant (2012-11-12 20:05:47)

Offline

#4 2012-11-13 13:29:43

javex
Member
Registered: 2011-12-30
Posts: 76

Re: [SOLVED] systemd boot log

Ah very well, I did not know there were different files I could specify. It still does not look like the output on my screen but it seems to contain more & different messages. Since I currently have fixed all issues, I cannot judge if it would display the issues correctly. If there is no other way (i.e. receive the exact output that was given on tty1), then I will settle for this.

Thank you very much for your response.

Offline

#5 2012-11-13 14:15:32

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [SOLVED] systemd boot log

The messages printed to tty1 are not particularly useful - error messages from the services are not printed there, just a bunch of "Starting XYZ" and "Started XYZ" (that's why they are not logged anywhere). All failures can be obtained from 'systemctl --failed', and the output of 'systemctl status xyz.service' is much more useful than anything printed on tty1.

Offline

#6 2012-11-13 14:22:26

javex
Member
Registered: 2011-12-30
Posts: 76

Re: [SOLVED] systemd boot log

Okay, thank you very much. I will keep these commands in mind until I have the same issue again.

But one thing I would like to note: I had a misconfiguration with laptop-mode and it did print error messages to the screen that I was not able to find (but maybe they were somewhere and I just didn't find it).

Offline

#7 2013-11-12 16:18:38

k0tb4tzen
Member
Registered: 2013-11-12
Posts: 32

Re: [SOLVED] systemd boot log

Hey, I have the exact same problem (found with google). I want to have a boot messages log in /var/log/boot.log and maybe a shutdown.log there too.

Since I too can't find a few errors which appear during boot, how do I enable it? syystemctl status laptop_mode didn't bring up any results.

Offline

#8 2013-11-12 16:22:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] systemd boot log

Please don't necrobump; particularly solved threads: https://wiki.archlinux.org/index.php/Fo … Bumping.27



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB