]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journalctl.c
journalctl: allow --root argument for journal watching 3946/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Aug 2016 04:34:45 +0000 (00:34 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Aug 2016 04:38:03 +0000 (00:38 -0400)
commit0a1750934f58d72682f5f8d441a249f5e6f22c24
tree956cc84e06f7c644e52e1dfe7f5a06715272d022
parent16fefe9080fafa9e8a96248519f0623f3c7dc5b5
journalctl: allow --root argument for journal watching

It is useful to look at a (possibly inactive) container or other os tree
with --root=/path/to/container. This is similar to specifying
--directory=/path/to/container/var/log/journal --directory=/path/to/container/run/systemd/journal
(if using --directory multiple times was allowed), but doesn't require
as much typing.
man/journalctl.xml
src/journal/journalctl.c