If you want to take a look at kernel message (for example system boot), you command is
The new equivalent isdmesg
Ok - not really amazing.journalctl -k
But all of you know the message
You can run the "systemctl start/restart/stop" and in case of error open the logs with "journalctl -xe". I would recommend to open a seperate shell and run thereSee "systemctl status nginx.service" and "journalctl -xe" for details.
This is something like "tail -f" to the systemd-journal.journdalctl -f
If you do a "systemctl restart network" the shell with journalcctl -f shows the DHCP waiting for a answer from the server and you know why its so slow. You especially know, that your fifth interface has DHCP enabled and there is no DHCP, which slows down every "systemctl restart network".
journalctl has some nice filters like
journalctl -p 0..4This just shows the message with
- "emerg" (0),
- "alert" (1),
- "crit" (2),
- "err" (3),
- "warning" (4),
- "notice" (5),
- "info" (6), "debug" (7)
journalctl -u NetworkManager
And my favourite: Pipe your own log messages into the systemd-journal:
Which result in this entry:echo This is important | systemd-cat -t MightyJournal -p notice
Sep 28 20:48:55 zerberus MightyJournal[28520]: This is important
No comments:
Post a Comment