[systemd-devel] Trying to resolve user level systemd unit journal not writing to local user journal

SCOTT FIELDS Scott.Fields at kyndryl.com
Mon Aug 12 19:36:07 UTC 2024


OS = Fedora 39
Systemd version = 254.13

I have an application running via a user level system unit file.

The UID is > 999.

I'm expecting the application journal entries to be a local entry in $XDG_STATE_HOME/log, but it's using the user level journal in /var/log/journal.

FYI, I'm not expressly setting XDG_STATE_HOME, since it heavily implies it will default to '$HOME /. local/state'

I not yet tested expressly setting XDG_STATE_HOME in the unit file environment variables, since I really shouldn't have to.

My understanding of the behavior is it SHOULD be writing this to the XDG_STATE_HOME location. If it's correct, how I can be troubleshoot why it's not?


Scott Fields

Kyndryl

Senior Lead SRE – BNSF

817-593-5038 (BNSF)

scott.fields at kyndryl.com<mailto:scott.fields at kyndryl.com>

scott.fields at bnsf.com<mailto:scott.fields at bnsf.com>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240812/1b8e0d64/attachment-0001.htm>


More information about the systemd-devel mailing list