]> git.ipfire.org Git - thirdparty/systemd.git/commit
core,journal: export user units' InvocationID and use as _SYSTEMD_INVOCATION_ID 14329/head
authorAnita Zhang <the.anitazha@gmail.com>
Thu, 12 Dec 2019 05:15:42 +0000 (21:15 -0800)
committerAnita Zhang <the.anitazha@gmail.com>
Fri, 20 Dec 2019 01:42:17 +0000 (17:42 -0800)
commit2f8c48b6059b9d22ff40bc260bfb1939419b4e84
tree16e297d4dabd3596e6feaff8f77dc79c3f1263b9
parentef886390283131877f20ff9b70776b5f3261f22b
core,journal: export user units' InvocationID and use as _SYSTEMD_INVOCATION_ID

Write a user unit's invocation ID to /run/user/<uid>/systemd/units/ similar
to how a system unit's invocation ID is written to /run/systemd/units/.

This lets the journal read and add a user unit's invocation ID to the
_SYSTEMD_INVOCATION_ID field of logs instead of the user manager's
invocation ID.

Fixes #12474
src/core/manager.c
src/core/unit.c
src/journal/journald-context.c