chiark / gitweb /
journalctl: add --list-boots to show boot IDs and times
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Oct 2013 03:43:57 +0000 (23:43 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Oct 2013 03:43:57 +0000 (23:43 -0400)
commitf11880744c27209a42f502c690db86b38d2db14b
treee3f2934b4d3ecab8c9de704371cc36ccb61948ee
parentc20fd707a2b8c75166096544ee6f1538505e40a9
journalctl: add --list-boots to show boot IDs and times

Suggested by David Wilkins <dwilkins@maths.tcd.ie> in
https://bugzilla.redhat.com/show_bug.cgi?id=967521:

> [Specific boot ID is a] bit of a palaver to obtain.  I consulted the
> verbose dump of the journal to discover the _BOOT_ID for the
> timestamp, and then generated the journal dump for that boot using
> journalctl _BOOT_ID=foo -o short-monotonic.
man/journalctl.xml
shell-completion/bash/journalctl
shell-completion/zsh/_journalctl
src/journal/journalctl.c