Hi The following series of patches implements support for logging user session units to the journal. Messages by the unit itself are marked with _SYSTEMD_USER_UNIT and messages regarding the unit from the systemd instance are marked with USER_UNIT.
Patch 1: log _SYSTEMD_USER_UNIT into the journal Patch 2: log USER_UNIT from systemd core and use it. Patch 3+4: use _SYSTEMD_USER_UNIT and USER_UNIT in systemctl --user status Patch 5: update the man page However, something isn't working quite right. The output of systemctl --user status sometimes shows entries that belong to different units and it doesn't always show the configured number of entries, even if there are enough available. I suspect a bug in the seek and match code that's triggered by Patches 3+4. But I don't have a very good understanding of the lower level journal code so even though I tried I couldn't locate the bug :/ Of cause the possibility remains that the patches are simply faulty, so please take a look ;) Here are some todos I didn't get to yet: - support for coredumps (COREDUMP_USER_UNIT) - (maybe) only open logfiles of one user (SD_JOURNAL_USER_ONLY) Thanks Mirco _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel