Lennart Poettering
241c8f67f6
man: document the new sd_journal_open_namespace() API
2020-01-31 15:10:40 +01:00
Lennart Poettering
5b0a76d107
man: document LogNamespace= unit setting
2020-01-31 15:10:40 +01:00
Lennart Poettering
7d8155b3df
man: document new _NAMESPACE= journal field
2020-01-31 15:10:40 +01:00
Lennart Poettering
6bc4361997
man: document journald@NAMESPACE.conf
2020-01-31 15:10:40 +01:00
Lennart Poettering
efcbcd0d04
man: document journald namespaces
2020-01-31 15:10:40 +01:00
Lennart Poettering
23d8c56046
journalctl: underline sections in --help
2020-01-31 15:10:40 +01:00
Lennart Poettering
340cb115b3
units: define RuntimeDirectory= in systemd-journald.service
...
It doesn't get us much, but makes the differences between the templated
and non-templated versions a bit smaller.
2020-01-31 15:04:24 +01:00
Lennart Poettering
5591cd4e20
units: sort settings in systemd-journald.service again
2020-01-31 15:04:15 +01:00
Lennart Poettering
fb38a7beb8
tmpfiles: apply ACLs to top-level journal directory in /run, too
...
We already apply them to the directory in /var. Let's do the same in
/run too. That's because due to the log namespace logic we nowadays can
gain additional subdirs there during regular operation.
2020-01-31 15:04:12 +01:00
Lennart Poettering
0f5a4f9cd9
tmpfiles: merge lines for the same inodes
2020-01-31 15:04:08 +01:00
Lennart Poettering
db23d83bd4
test: add simple test for log namespaces
2020-01-31 15:04:05 +01:00
Lennart Poettering
dc5437c78b
journald: add ability to activate by varlink socket
...
If we have exit on idle, then operations such as "journalctl
--namespace=foo --rotate" should work even if the journal daemon is
currently not running.
(Note that we don't do activation by varlink for the main instance of
journald, I am not sure the deadlocks it might introduce are worth it)
2020-01-31 15:03:55 +01:00
Lennart Poettering
65c398c031
journald: add exit on idle
2020-01-31 15:03:44 +01:00
Lennart Poettering
6d4d600260
varlink: add ability to register callback for disconnections
2020-01-31 15:03:27 +01:00
Lennart Poettering
c4f601f205
varlink: add API for determining number of current connections
2020-01-31 15:03:11 +01:00
Lennart Poettering
d98580e438
journald: use structured initialization
2020-01-31 15:03:07 +01:00
Lennart Poettering
2435269171
journald: add logging for one error we lacked logging for
2020-01-31 15:03:04 +01:00
Lennart Poettering
d93dda3afe
systemctl: show logs for correct namespace of service
2020-01-31 15:02:52 +01:00
Lennart Poettering
21fa231ece
journalctl: drop misplaced empty line
2020-01-31 15:02:48 +01:00
Lennart Poettering
6b25db87a1
journalctl: add new --namespace= switch for showing logs for namespace
2020-01-31 15:02:45 +01:00
Lennart Poettering
31e99dd2cc
journal: make constant argument actually 'const'
2020-01-31 15:02:41 +01:00
Lennart Poettering
456aa87906
journal: allow opening journal files specific to some namespace
2020-01-31 15:02:29 +01:00
Lennart Poettering
2f5435a147
journal: use structured initialization
2020-01-31 15:02:25 +01:00
Lennart Poettering
33ff74643e
journalctl: use an anonymous array when an array is needed
...
I am pretty sure this makes things more readable, since the expected
argument here is actually an array.
2020-01-31 15:02:22 +01:00
Lennart Poettering
68312977db
journal: properly mark two definitions that are deprecated with GCC attributes for that
2020-01-31 15:02:00 +01:00
Lennart Poettering
e7238caf0c
journalctl: use automatic memory cleanup
2020-01-31 15:01:57 +01:00
Lennart Poettering
0491150b5c
journalctl: use log_error_errno() wherever we can
2020-01-31 15:01:53 +01:00
Lennart Poettering
a6214d9643
journalctl: move pcre function code down
...
We usually put the static arguments at the top of each source files, do
so here too, and thus move the first code down.
2020-01-31 15:01:50 +01:00
Lennart Poettering
91dd5f7cbe
core: add new LogNamespace= execution setting
2020-01-31 15:01:43 +01:00
Lennart Poettering
839d1b2014
string-util: add brief explanatory comment
2020-01-31 15:01:39 +01:00
Lennart Poettering
1ee51fbd70
units: add unit files for instantiated journal daemons
2020-01-31 15:01:30 +01:00
Lennart Poettering
b1852c48c1
journald: allow running multiple instances of journald
...
If we do, we operate on a separate set of logs and runtime objects
The namespace is configured via argv[1].
Fixes : #12123
Fixes : #10230 #9519
(These latter two issues ask for slightly different stuff, but the
usecases generally can be solved by running separate instances of
journald now, hence also declaring that as "Fixes:")
2020-01-31 15:01:18 +01:00
Lennart Poettering
d6f46470f5
journald: when create journal directories use calculated paths
2020-01-31 15:01:14 +01:00
Lennart Poettering
4f60310373
journald: minor coding style updates
2020-01-31 15:01:09 +01:00
Lennart Poettering
4e00337b16
journald: let's simplify rotating of offline user journals
...
Let's just use the path that is already stored in JournalStorage,
instead of generating our own. While we are at it, split out the loop
into its own function.
2020-01-31 15:01:05 +01:00
Lennart Poettering
46e2348a58
journald: simplify find_journal() a bit
...
Let's use the already precalculated persistent storage path instead of
deriving it again from the machine ID.
2020-01-31 15:01:01 +01:00
Lennart Poettering
b42b9479a8
journald: hide current storage determination in helper call
2020-01-31 15:00:57 +01:00
Lennart Poettering
74dd8f5759
journald: use structured initialization
2020-01-31 15:00:53 +01:00
Lennart Poettering
8548f4f09b
journald: line break overly long function header
2020-01-31 15:00:49 +01:00
Lennart Poettering
7e7ef3bfb2
journald: let's use TAKE_PTR() and TAKE_FD() where appropriate
2020-01-31 15:00:45 +01:00
Lennart Poettering
a30e35f85a
journald: let's use unlink_and_free() where we can
2020-01-31 15:00:41 +01:00
Lennart Poettering
2066f4fe30
journald: specifying _pure_ on static functions is unnecessary, compiler can figure that out on its own
2020-01-31 15:00:37 +01:00
Lennart Poettering
a2735a4549
journald: don't bother with seqnum file if we don't read form /dev/kmsg anyway
2020-01-31 15:00:33 +01:00
Lennart Poettering
dbac262578
journald: fix indentation
2020-01-31 15:00:29 +01:00
Lennart Poettering
99d0d05a10
journald: use free_and_replace() where appropriate
2020-01-31 15:00:25 +01:00
Lennart Poettering
659a77bec6
journald: add missing logging for some errors
2020-01-31 15:00:21 +01:00
Lennart Poettering
d83f7e4c92
journald: why bitwise XOR when boolean != is easier to read?
2020-01-31 14:59:41 +01:00
Evgeny Vereshchagin
9a1862bfa6
tests: unset LD_PRELOAD in testsuite.service when it's run under ASan
...
This should help to address the "grep" issue we ran into in
https://github.com/systemd/systemd-centos-ci/pull/217 .
2020-01-31 13:13:04 +01:00
Michael Biebl
99860f1f8d
Merge pull request #14718 from yuwata/man-repart-14716
...
man: do not install man pages for systemd-repart if it is disabled
2020-01-31 11:49:24 +01:00
Yu Watanabe
2d37ea5ca9
man: do not install man pages for systemd-repart if it is disabled
...
Closes #14716 .
2020-01-31 18:06:09 +09:00